Welcome Guest, Not a member yet? Register   Sign In
Dynamic Controller Names
#6

[eluser]PHP Creative[/eluser]
Hi there.

Thanks a million for the replies. I think the routes option is the best but the function remaping solution would be fine apart from the fact I have a hundreds of names in the table.

Code:
function _remap($method)
{
    if ($method == 'resturant_name_here')
    {
        $this->info();
    }
    else
    {
        $this->index();
    }
}

Does anybody know of a solution around this that doesn't require checking the db for the names?


Messages In This Thread
Dynamic Controller Names - by El Forum - 05-17-2009, 07:29 PM
Dynamic Controller Names - by El Forum - 05-17-2009, 07:43 PM
Dynamic Controller Names - by El Forum - 05-17-2009, 08:17 PM
Dynamic Controller Names - by El Forum - 05-17-2009, 10:15 PM
Dynamic Controller Names - by El Forum - 05-18-2009, 02:37 AM
Dynamic Controller Names - by El Forum - 05-22-2009, 10:15 AM
Dynamic Controller Names - by El Forum - 05-23-2009, 12:50 PM
Dynamic Controller Names - by El Forum - 05-23-2009, 01:00 PM
Dynamic Controller Names - by El Forum - 05-24-2009, 05:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB