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.
Open this file.
and find this setting
Now replace its value from MY_ to anything you want, like Project1_.
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_.
0 comments:
Post a Comment