Welcome Guest, Not a member yet? Register   Sign In
Getting the URL to work
#8

[eluser]Pascal Kriete[/eluser]
Usually it's quite simple, but it sounds like the application your working on has been changed a bit.

The normal way:
Take all the variables you need in your view and put them in an associative array, such as:
Code:
$view_vars = array('test' => $var, 'test2' => 'cool');
(it could be $this->view_vars, $jj->mydingojumps, or anything else - as long as it's a valid array)

Then load your view using:
Code:
$this->load->view('view', $view_vars);

If you don't need any variables in your view you can omit that parameter.
The variables are extracted, so that in your view you now have access to $test and $test2.

I would suggest you find the template function and figure out what it does differently. Apart from using a different extension.


Messages In This Thread
Getting the URL to work - by El Forum - 03-19-2008, 11:50 AM
Getting the URL to work - by El Forum - 03-19-2008, 12:01 PM
Getting the URL to work - by El Forum - 03-19-2008, 12:11 PM
Getting the URL to work - by El Forum - 03-19-2008, 12:27 PM
Getting the URL to work - by El Forum - 03-19-2008, 12:31 PM
Getting the URL to work - by El Forum - 03-19-2008, 02:19 PM
Getting the URL to work - by El Forum - 03-19-2008, 05:13 PM
Getting the URL to work - by El Forum - 03-19-2008, 05:36 PM
Getting the URL to work - by El Forum - 03-19-2008, 07:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB