store_items
控制器
<?php
class store_items extends MX_Controller
{
function __construct()
{
parent::__construct();
}
function create(){
$this->load->library('session');
$this->load->module('site_security');
$this->site_security->_make_sure_is_admin();
$data['view_module'] = "store_items";
$data['view_file'] = "create";
$this->load->module('templates');
$this->templates->admin($data);
}
这是create.php
<h1>Add new items</h1>
i m not able to load create.php file in the browser
create file is not loaded
what is the issue in loading the view file
The view file ie create is not loading in the browser
我无法在浏览器中加载create.php文件 未加载创建文件 加载视图文件有什么问题 视图文件即创建未在浏览器中加载
答案 0 :(得分:0)
尝试这样加载模块
$this->load->module('templates/admin',$data);