Please wait for 15 seconds...

Wednesday, 5 September 2012

If you extend Codeigniter base library, by default you have to choose extend file prefix as "MY_".  So if you extend CI_Controller then your extended file's name must be like MY_Controller or MY_custom_controller or  if you extend CI_Model then your extended file's name must be like MY_Model or MY_custom_model.

Here MY_ prefix is compulsory after that you can write filename blah blah whatever you want.

But you change MY_ by changing one setting in config file and I am going to explain how to do it.


All core extend file must be in application/core folder.

Open this file.


and find this setting


Now replace its value from MY_ to anything you want, like Project1_.


prefix first letter must be in uppercase.

Posted by Atul


Post a Comment

Techsirius on Facebook