Cannot see a variable in footer : - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Cannot see a variable in footer : (/showthread.php?tid=68939) |
Cannot see a variable in footer : - pippuccio76 - 09-15-2017 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> RE: Cannot see a variable in footer : - InsiteFX - 09-15-2017 If you need the variables in all views you can do this: Quote:$this->load->vars($data); RE: Cannot see a variable in footer : - donpwinston - 09-15-2017 "order": [ <?php echo $ordinamento ?>, 'asc' ] missing semicolon. if you use <?= $ordinamento ?> then you don't need a semicolon. |