Welcome Guest, Not a member yet? Register   Sign In
How do I need to do this? Library? Plugin? Helper? I don't know..
#1

[eluser]Gijs Bloemen[/eluser]
Hi all,

Last days I had some questions about CodeIgniter, the app that I am building with it is going nice at the moment. But now I get a new problem. I have been thinking but I do not know how you theoretical needs to do this to follow the MVC guidelines..

The header of my site needs to be the same every moment. No problem, just load the header in a different view so I can change the header by just change one file.

So at the moment I load my site in de controller as following:

Code:
$this->load->view('header');
$this->load->view('thispage..');
$this->load->view('footer');

This works fine. But now I want to parse some information out of my database in the header. So I want to know, how to do this, get everything out of the database in a library, plugin or helper? Wich one do I need to put the script to get the right information en put it in the right array.

Maybe it is a stupid question. But I like to do it good from the first time..

Regards,
Gijs Bloemen

(Excuse me for my bad English)


Messages In This Thread
How do I need to do this? Library? Plugin? Helper? I don't know.. - by El Forum - 07-15-2009, 06:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB