loading template only once ? |
For me worked very well with new Controller, like:
Create a MY_Controller.php in application/core with this: PHP Code: <?php And this is it. To work with it, in your controllers use like this: PHP Code: .... Now you have a template function that load the header and footer everytime and also load the page content and you can pass trough data to show on the header,page content and footer. Hope is usefull. Have a nice day, Eduard. Quote:I love web development. I love web design. I love photography. |
Messages In This Thread |
loading template only once ? - by Coool6 - 02-22-2017, 07:22 AM
RE: loading template only once ? - by InsiteFX - 02-22-2017, 11:10 AM
RE: loading template only once ? - by Coool6 - 02-22-2017, 12:10 PM
RE: loading template only once ? - by ciadmin - 02-22-2017, 10:06 PM
RE: loading template only once ? - by eduard.pantazi - 02-22-2017, 11:44 PM
RE: loading template only once ? - by InsiteFX - 02-23-2017, 05:03 AM
|