![]() |
Custom Auth library is ignoring extended Config 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: Custom Auth library is ignoring extended Config Library (/showthread.php?tid=15434) |
Custom Auth library is ignoring extended Config Library - El Forum - 02-04-2009 [eluser]nmormino[/eluser] ok. This is strange for me I'd really appreciate it if anyone had an idea of what was going on. I wrote a custom authentication library. If someone makes an attempt to go into a secure area and they are not logged in, they are redirected to a login page. I'm building a shopping cart right now, so I need SSL support. In order to add SSL support, I followed a lot of the advice given in these forums previously. I extended CI_Config with MY_Config and added a secure_site_url function (My_url_helper has a secure_redirect function that uses it). This function will work if used in a controller, but if I try to use it from within my custom Auth library, I get this error Call to undefined method CI_Config: ![]() If I just add the secure_site_url directly to the config library, I do not get this error (I do not want to do this, because I want to be able to easily upgrade to new versions of Code Igniter as they come out without reediting core files). I can only assume that the config library is not dynamically extending to the MY_Config library automatically when used within another library. I would appreciate any suggestions, Thanks! Custom Auth library is ignoring extended Config Library - El Forum - 12-11-2009 [eluser]Unknown[/eluser] I am stuck with the same problem -- it started to happen right after I updated to CI 1.7.2. So far I have not found the solution. Custom Auth library is ignoring extended Config Library - El Forum - 02-19-2010 [eluser]nmormino[/eluser] Umm... Looks like nobody cares about this problem. so.. Bump? Custom Auth library is ignoring extended Config Library - El Forum - 02-19-2010 [eluser]nmormino[/eluser] ok. this wasn't working for me due to a stupid typographical error... DOH! Custom Auth library is ignoring extended Config Library - El Forum - 02-19-2010 [eluser]bretticus[/eluser] nevermind, you seem to have solved it. |