-
Recent Posts
Recent Comments
Archives
Categories
Meta
Daily Archives: March 1, 2010
Best practice of sharing common variable among functions of a class
here is two ways of share value of variable all through member functions of a class class Clients extends Controller { function __construct(){ parent::Controller(); $uri_array = $this->uri->uri_to_assoc(1); $this->folder_id = $uri_array['folder']; //This not works $this->session->set_userdata(“folder_id”,$uri_array['folder']); } public function sample() { $folder_id … Continue reading
Posted in Code Igniter
Leave a comment