Articles → PHP CODEIGNITER → Get_Instance Method In Codeigniter

Get_Instance Method In Codeigniter






Purpose







Example




$c = & get_instance();

$c->load->helper('date');
nice_date(NULL, NULL);




  1. The first line gives the instance using the "get_instance" method.
  2. Second line loads the helper.
  3. Third line calls the method "nice_date".



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, July 28, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250