Welcome Guest, Not a member yet? Register   Sign In
$this->_remap('home') sends index instead of home.
#9

[eluser]jdfwarrior[/eluser]
Index should not be called. When the remap function is used, it replaces index as the default function. If you dont specify a function for that controller, it still reads "index" as the function to be called, from _remap.

So if you want it to call the index function you need to have:

Code:
function _remap($func) {

    switch ($func) {
        case "index": $this->index();

    }

}

You have to explicity call index.


Messages In This Thread
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 10:34 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 11:04 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 11:09 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 11:18 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 11:26 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 11:45 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 11:58 AM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 12:09 PM
$this->_remap('home') sends index instead of home. - by El Forum - 04-29-2009, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB