CodeIgniter Forums
Header Controllers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Header Controllers (/showthread.php?tid=11666)



Header Controllers - El Forum - 09-18-2008

[eluser]Bl4cKWid0w[/eluser]
I've used php header files before I started using CI. I was wondering what format I'm supposed to use for this? For example, a normal controller would be this:

Code:
class Main extends Controller(){

function index(){

     }

}

My header files will contain view files as well. Will the header files work the same way as a normal controller would?


Header Controllers - El Forum - 09-18-2008

[eluser]Crafter[/eluser]
Not meaning to sound nasty, but I think you have your MVC concepts mixed up.

I suggest you reread the first few pages of the CI user manual where the MVC framework is explained and how it is implemented by your application by means of models, views and controllers.