i had problem that if i declare private variable getting session value by $this->session->userdata()
. if just a nomol string it ok
private $table = 'contact'; // Work
private $my_prefix = $this->session->userdata('my_prefix');
// Error compile : Constant expression contains invalid operations
i had atleast 3 or more function in Controller and some of them need to get my_prefex session to do the job with difference language field in db.
i don't want to declare $my_prefix = $this->session->userdata('my_prefix');
in all Function i have in controller. is it possible to declare 1 private to use in all function of my controller. Thank in advance