Cannot see a variable in footer : |
hi , i cannot see a variable in footer , this is my funcion in controller :
Code: public function lista_attivi(){ This is footer : Code: </div> The error is : <h4>A PHP Error was encountered</h4> <p>Severity: Notice</p> <p>Message: Undefined variable: ordinamento</p>
If you need the variables in all views you can do this:
Quote:$this->load->vars($data); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
"order": [ <?php echo $ordinamento ?>, 'asc' ]
missing semicolon. if you use <?= $ordinamento ?> then you don't need a semicolon.
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |