![]() |
Phil Sturgeon's Template Library doesn't load config file? - 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: Phil Sturgeon's Template Library doesn't load config file? (/showthread.php?tid=39849) |
Phil Sturgeon's Template Library doesn't load config file? - El Forum - 03-22-2011 [eluser]Kevin Smith[/eluser] This feels like a strange one to post considering this library has been around for some time and no one else has had this problem, but the Template Library is not loading its config file. The file is located here: Code: ./application/config/template.php I've messed with obvious values in the config file like $config['title_separator'], and the results aren't reflected in the output. The library is apparently just assuming its default values. As I've tried to debug it, I've looked for the place in the Template.php library file where the config file is loaded, but I can't even find that. Is it missing or am I just a dunce here? Phil Sturgeon's Template Library doesn't load config file? - El Forum - 03-23-2011 [eluser]Kevin Smith[/eluser] Since this wasn't a deal-breaker, I went on with developing the application, and at some point I noticed that it was pulling from the template config file. I'm not sure what change I made that got it all to work, but it's working now. Oh well... Phil Sturgeon's Template Library doesn't load config file? - El Forum - 05-09-2011 [eluser]Mr. Pickle[/eluser] I'm having the exact same problem. Config settings are not applied even though config and library name match. If I dump the config items it tries to set in the initialize function I get an empty array. Phil Sturgeon's Template Library doesn't load config file? - El Forum - 05-09-2011 [eluser]Mr. Pickle[/eluser] Solution is to remove 'template' from the config array in the autoload.php file. |