|
楼主 |
发表于 2009-10-7 14:05:38
|
显示全部楼层
很感谢 HEX 的回答,
但我想实现
隐藏当前控制器,只显现方法!
就像
class Contact_us extends Controller{
function index()
{
$data['title'] = 'Home---adress page';
$this->load->view('home_view',$data);
}
function job()
{
$data['title'] = 'Home---info page';
$this->load->view('info_view',$data);
}
function faceback()
{
$data['title'] = 'Home---adress page';
$this->load->view('adress_view',$data);
}
}
访问URL 是
http://localhost:8080/cixy/index.php/contact_us/index
http://localhost:8080/cixy/index.php/contact_us/job
http://localhost:8080/cixy/index.php/contact_us/faceback
我想它变成
http://localhost:8080/cixy/index.php/index
http://localhost:8080/cixy/index.php/job
http://localhost:8080/cixy/index.php/faceback
也就是隐藏当前控制器
就像隐藏index.php 那样! |
|