|
发表于 2011-8-1 17:42:53
|
显示全部楼层
class User_test_module extends CI_Module
{
function __construct()
{
parent::__construct();
}
function index(){
/*echo "OK";*/
$title="用户测试";
$this->template->write('title',$title);
$this->template->write('layout','a_l_m');
$this->template->write_view('main',"test/main");
$this->template->write_view('sidebar','test/left');
$this->template->render();
}
这里的$this->template 在此模块中是不认的,但$this->template这个应该是个全局的调用,不知道怎么区分?难道每个模块都要放一遍这个libraries? |
|