|
楼主 |
发表于 2009-8-31 16:15:19
|
显示全部楼层
http://localhost/index.php/welcome/welcome
<?php
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
$this->load->view('welcome_message');
}
function index()
{
$this->load->view('welcome_message');
}
function index2()
{
$this->load->view('welcome_message');
}
}
/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php
其实只要类名=action 的时候,,,构造函数自动执行,都会出现两个问题,好像不是index的问题。。
呵呵。。
<?php
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
//$this->load->view('welcome_message');
}
function index()
{
$this->load->view('welcome_message');
}
function index2()
{
$this->load->view('welcome_message');
}
}
/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */
http://localhost/index.php/welcome
执行1次。。嘿嘿 |
|