01-07-2010, 05:31 PM
[eluser]dadamssg[/eluser]
I'm trying to set this up as 'best practice' as i can.
I have my controllers and view files that are working but i want to have a file in which i include in all of my views. In this include file i want to hold a function that will just echo my header.
This way i can just type the header code once(in the include file) and then include it in all of my views and then just call my function that echos out my header.
My question is..where should i put this include file? Is it a model? or do i put in my view folder because it is something i will be viewing?
I'm trying to set this up as 'best practice' as i can.
I have my controllers and view files that are working but i want to have a file in which i include in all of my views. In this include file i want to hold a function that will just echo my header.
This way i can just type the header code once(in the include file) and then include it in all of my views and then just call my function that echos out my header.
My question is..where should i put this include file? Is it a model? or do i put in my view folder because it is something i will be viewing?