• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Header Controllers

#1
[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?

#2
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.