CodeIgniter Forums
Including calendar template throughout multiple controllers - 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: Including calendar template throughout multiple controllers (/showthread.php?tid=3719)



Including calendar template throughout multiple controllers - El Forum - 10-18-2007

[eluser]mrtopher[/eluser]
I'm using the CI Calendar library and things are working fine. Only thing is, I need to display the calendar is a couple of different places. I have created a calendar template, as outlined in the documentation, but now I'm trying to find a way to include that template throughout the controllers that need it.

I was looking at the code behind Bamboo Invoice and it looks like they do something similar with including common validation by putting into a file within views and then including it with the following:

Code:
$this->load->view('custom_validation/clients_validation.php', '', FALSE); // field validation

But when I do that with my calendar template it doesn't seem to work. Anyone have any ideas on how I can include this calendar template throughout multiple controllers?


Including calendar template throughout multiple controllers - El Forum - 10-22-2007

[eluser]mrtopher[/eluser]
No body has any ideas?


Including calendar template throughout multiple controllers - El Forum - 10-24-2007

[eluser]Derek Allard[/eluser]
The false means "load it to a string". What happens if you just try
Code:
$this->load->view('calendar.php');