Welcome Guest, Not a member yet? Register   Sign In
Variable not being passed
#2

[eluser]Tpojka[/eluser]
Check views again.

You should add the key to your $data variable because using as is, it is CI native engine (as you calling it after view 'footer').
Your key should be unique value that can be called in view as required.
Something like:
Code:
// controller
$testvalue = 'testvalue';
$data['myKey'] = array('test' => $testvalue);
$this->load->view('footer', $data);
Code:
// view
print_r('myKey');
Test it yourself.


Messages In This Thread
Variable not being passed - by El Forum - 12-26-2013, 04:20 AM
Variable not being passed - by El Forum - 12-26-2013, 04:43 AM
Variable not being passed - by El Forum - 12-26-2013, 04:45 AM
Variable not being passed - by El Forum - 12-26-2013, 04:49 AM
Variable not being passed - by El Forum - 12-26-2013, 04:57 AM
Variable not being passed - by El Forum - 12-26-2013, 05:12 AM
Variable not being passed - by El Forum - 12-26-2013, 05:16 AM
Variable not being passed - by El Forum - 12-26-2013, 02:50 PM
Variable not being passed - by El Forum - 12-27-2013, 04:13 AM
Variable not being passed - by El Forum - 12-27-2013, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB