0

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 文件创建文件未加载加载视图文件时出现什么问题视图文件即创建未在浏览器中加载

4

1 回答 1

0

尝试像这样加载模块

$this->load->module('templates/admin',$data);
于 2018-06-20T12:20:39.247 回答