CodeIgniter Forums
Loading views in __contstruct() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Loading views in __contstruct() (/thread-46196.html)



Loading views in __contstruct() - El Forum - 10-22-2011

[eluser]Unknown[/eluser]
Hi,

Is it ok to load shared views in __construct. All of my functions in given controller shares a header. And also, is there a way to load shared footer, similiar to loading views in constructor?