codeigniter - How to access the session variables from the add.php in grocery crud? -
i modified add.php in grocery crud , add iframe shows image crud. need add conditional statement iframe show specific tables only. set flag in controller this. , problem dont know how access session because
$this->session->userdata('isuploadvisible');
will generate error
severity: notice message: undefined property: grocery_crud::$session filename: views/add.php line number: 2
this add.php 1 can found in
assets/grocery_crud/themes/datatables/views/add.php
you use $this
somewhere refers this grocery_crud
class. try this:
$ci =& get_instance(); $ci->session->userdata('isuploadvisible');
Comments
Post a Comment