Welcome Guest, Not a member yet? Register   Sign In
Library or helper?
#2

[eluser]Bramme[/eluser]
It kinda depends: do you use multiple controllers, or only one?

I'd make my constructor look like this:
Code:
function __construct()
{
    // do all your queries here
    // use a model to interact with your database if necessary
    $array['navi'] = ''; //get the array that's needed for the navigation
    $this->load->vars($array);
}
and then you can use $navi in your leftnav_view


Messages In This Thread
Library or helper? - by El Forum - 07-16-2008, 08:38 AM
Library or helper? - by El Forum - 07-16-2008, 09:58 AM
Library or helper? - by El Forum - 07-16-2008, 11:50 AM
Library or helper? - by El Forum - 07-16-2008, 02:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB