Welcome Guest, Not a member yet? Register   Sign In
Controller Setup
#3

[eluser]Chad Tomkiss[/eluser]
Hi bargainph,

Thank you for your reply.

I had seen the thread, and I did think of

Code:
function resources($page)
    {
        if ($page != NULL)
        {
            $this->load->view('community/resources/$page');
        }
        else
        {
            $this->load->view('community/resources');
        }
    }

but I was not sure if this was the best way.


Kind regards,

Chad


Messages In This Thread
Controller Setup - by El Forum - 07-03-2009, 02:48 AM
Controller Setup - by El Forum - 07-03-2009, 02:59 AM
Controller Setup - by El Forum - 07-03-2009, 03:07 AM
Controller Setup - by El Forum - 07-03-2009, 03:13 AM
Controller Setup - by El Forum - 07-03-2009, 03:52 AM
Controller Setup - by El Forum - 07-03-2009, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB