how to access core config files from the extended library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how to access core config files from the extended library (/showthread.php?tid=53643) |
how to access core config files from the extended library - El Forum - 08-01-2012 [eluser]Unknown[/eluser] Hey, I have little problem in loading codigniter core config files from one of the extended library. for example:- I have extended the "image_lib" as MY_image_lib and now i want to use codigniter core config files form My_image_lib ..... How can i do this...... urgent...... Thanks in advance how to access core config files from the extended library - El Forum - 08-01-2012 [eluser]hadinug[/eluser] hi... maybe this can help you yesterday I found a problem seem as yours, i want to access file config from another directory for ex: application/libraries/config/ , so I create new library,, just little editing in library/confing.php.. first: i create file hconfig.php in folder application/libraries/ and write this Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); and how it's work....? ex: you can create a new file config,,, for example: mylibrary_config.php in folder application/libraries/config/ write in application/libraries/config/mylibrary_config.php Code: $config['name'] = 'hadi nugroho'; in your controller fuction Code: $this->load->library('hconfig'); i wish it's can help you.. |