title: codeigniter admin panel automatic page creation
body: <p>I want to create one controller file which is creating automatically a function if i create a menu dynamically and also want to create view page which is connencted to this main controller.. how to do that?</p>
  
  <p>Current code:      </p>
  
  <pre><code>public function our_history() 
        { 
            $data['category']= $this-&gt;menu_model-&gt;getCategory('$lang'); 
            $data['subcategory']= $this-&gt;menu_model-&gt;getSubCategory('$lang'); 
            $this-&gt;load-&gt;view('vwMain',$data);//Left Menu } 
        }
  </code></pre>