Welcome Guest, Not a member yet? Register   Sign In
Message: Undefined variable: rows ?
#9

[eluser]Jason Stanley[/eluser]
Change this line.

Code:
$this->data['midnav'] = $this->load->view('data_model_test', null, TRUE);

To

Code:
$this->data['midnav'] = $this->load->view('data_model_test', $this->data, TRUE);

Have a look at how the views are made. Then it will make more sense to you.

Quote:The third optional parameter lets you change the behavior of the function so that it returns data as a string rather than sending it to your browser.

The view is already processed and saved to a string. Passing data to your template file after this has happened won't do anything.

Out of interest did you even try what Aken wrote? If you did this problem should have been solved 3 hours ago :roll:


Messages In This Thread
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 12:14 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 12:37 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 01:53 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 03:11 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 03:45 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 03:54 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 04:10 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 04:16 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 04:26 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 04:36 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 04:40 AM
Message: Undefined variable: rows ? - by El Forum - 01-25-2012, 04:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB