CodeIgniter Forums
How to extend MX_config in HMVC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: How to extend MX_config in HMVC (/showthread.php?tid=44733)



How to extend MX_config in HMVC - El Forum - 08-24-2011

[eluser]Unknown[/eluser]
Currently I'm trying to figure out what is the best way to extend MX_Config utilizing the HMVC
I have a few functions that I would like to use to extend CodeIgniter core Config. When I try to extend it the normal CodeIgniter way I get the following error:

Fatal error: Call to undefined method MX_Config:Confusedecure_site_url()

but when I place the functions in the MX->Config file everything works normally.

How can I extend MX_config to make use of my functions so i won't have to tamper with the MX->config file.

Could I have extended CodeIgniter wrong?