CodeIgniter Forums
Loading views in __contstruct() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Loading views in __contstruct() (/showthread.php?tid=46196)



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?