这是mu控制器文件的代码
<?
if(!defined('BASEPATH')) exit ('not allow a direct access');
class password extends CI_Controller{
public function __construct()
{
parent::__construct();
$this->load->module('layout');
ini_set('display_errors','On');
error_reporting(E_ALL^E_NOTICE);
$this->load->database();
$this->load->helper('text');
}
public function index()
{
//$this->load->model('forgetPassword/forget_mdl');
//$data['package_detail'] = $this->register_mdl->package_detail();
$this->layout->getHeaderLayout('Forget Password');
$this->layout->getTopBarLayout();
$this->layout->getHeaderTopLayout();
$this->blade->render('forgetPassword/forgetPassword_view');
$this->layout->getFooterLayout();
}
}
?>
答案 0 :(得分:0)
控制器名称和文件名必须匹配。控制器名称也应为“密码”而不是“密码”
class Password extends CI_Controller{