Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB