CodeIgniter Forums

Full Version: Header Controllers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

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