CodeIgniter Forums
Header and Footer (Help needed) - 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: Header and Footer (Help needed) (/showthread.php?tid=22776)

Pages: 1 2


Header and Footer (Help needed) - El Forum - 09-23-2009

[eluser]navetz[/eluser]
Is there a way to get the header and footer to be loaded automatically for every view without having to specifically call the views for each page? Again the only thing I can think of is using hooks.


Header and Footer (Help needed) - El Forum - 09-23-2009

[eluser]jedd[/eluser]
[quote author="navetz" date="1253713841"]
Is there a way to get the header and footer to be loaded automatically for every view without having to specifically call the views for each page?
[/quote]

navetz, I answered this question in the third post in this thread.


Header and Footer (Help needed) - El Forum - 09-23-2009

[eluser]InsiteFX[/eluser]
Whats up with that?

Code:
class MY_Controller extends Controller
{
  // PHP 5 Constructor
  __construct()
  {
      //some stuff
  }

  // PHP 4 Constructor
  MY_Controller()
  {
      $this->__construct() // calls the php 5 Constructor.
  }
}

My_Controller is a php 4 constructor which then calls the php 5 constructor.


Enjoy
InsiteFX