Calender Problem |
[eluser]Solarpitch[/eluser]
Hi, I have the simplest of code from the calender class below, yet when I call my controller noting will load in my view. I'm stumped. CONTROLLER: Code: function calender_report() { VIEW: Code: <?=$calender_report?> Then I'm simply calling my controller... http://mysite.com/index.php/enterprise/calender_report Am I missing something?
[eluser]GSV Sleeper Service[/eluser]
according to that code you should be using Code: <?=$calender;?>
[eluser]Solarpitch[/eluser]
No that doesn't make a difference I'm afraid. And using the way I have you don't need a trailing ; after the variable. Code: <?=$calender?> I mean, I basically copied whats in the user guide. It's not a complex example so not sure why its not showing. It's crashing the whole page as the header or footer view isn't loading either.
[eluser]Hugh Fletcher[/eluser]
It doesn't appear that your loading your view. Perhaps that's it.
[eluser]JoostV[/eluser]
You forgot to load a view file ![]() Code: $this->load->view('someview', $data['calender']);
[eluser]Solarpitch[/eluser]
:red: Ummm ... your right, Let's just pretend this thread never existed!.... It can be our little secret ... sshh! ;-)
[eluser]Solarpitch[/eluser]
Actually... now that the stupid part is past us on this thread... is there any way around achieving this: Below I'm creating a calender for January. I want every day on the calender to be a link so here's what I tried... Code: $year = 2009; the problem is creating I get an error for each link which says Severity: Notice Message: Array to string conversion and the link aappears as http://www.mysite.ie/enterprise/calender/Array |
Welcome Guest, Not a member yet? Register Sign In |