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.

Note:

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



Open this file.

application/config/config.php

and find this setting

$config['subclass_prefix']

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

Note:

prefix first letter must be in uppercase.

Posted by Atul Prasad Gupta

0 comments:

Post a Comment

Subscribe Techsirius

Techsirius on Facebook