0

this is store_items controller

<?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);
    }

This is 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. I should see Add new items in the create file.

Pradeep
  • 9,667
  • 13
  • 27
  • 34

0 Answers0