Welcome Guest, Not a member yet? Register   Sign In
Returning a view into a variable
#1

[eluser]richfearless[/eluser]
Right, i have a view file in backend/static/calendar which contains my 'design' of the calendar, i wish to return this information as a variable($prefs) to my calendar-helper, $this->load->library('calendar', $prefs);

now i would think you can return it using something like this:
$this->load->view('backend/static/calendar', false');

But i am wrong, can you guys maybe suggest something to resolve my issue? Smile
#2

[eluser]whitey5759[/eluser]
The way to do it is like this:

$theView = $this->load->view("someView", "", true);
#3

[eluser]richfearless[/eluser]
oh my sack! thanks whitey5659, i owe you a beer!




Theme © iAndrew 2016 - Forum software by © MyBB