Welcome Guest, Not a member yet? Register   Sign In
Including calendar template throughout multiple controllers
#1

[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?
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB