Welcome Guest, Not a member yet? Register   Sign In
Issue with View controller method
#7

(This post was last modified: 06-04-2015, 01:35 AM by Avenirer.)

I don't understand. You want that, when accessing 'index.php/controllername', your site to display the view() method? If this is the case, you can do that by creating a "remap":


PHP Code:
public function _remap($method$params = array())
{
 
       if (method_exists($this$method))
 
       {
 
               return call_user_func_array(array($this$method), $params);
 
       }
        else
        {
                
$this->view($params);
        }



See more here: http://www.codeigniter.com/user_guide/ge...s.html#id7
Reply


Messages In This Thread
Issue with View controller method - by Adam_CC - 06-01-2015, 12:18 AM
RE: Issue with View controller method - by Avenirer - 06-04-2015, 01:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB