![]() |
Hooks strangeness [SOLVED] - 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: Hooks strangeness [SOLVED] (/showthread.php?tid=19791) |
Hooks strangeness [SOLVED] - El Forum - 06-18-2009 [eluser]roj[/eluser] Ok, so I'm throwing together a quick and dirty stat counter to a site for a client. It all works beautifully on my testing server but doesn't do a thing on the production server! Really starting to tear my hair out with this one any ideas? The two systems are carbon copies of each other bar the values for $config['base_url'] and $config['log_path'] and the .htaccess files. When I look in the logs I also see that the hooks class is initiated — in fact it's initiated regardless of whether $config['enable_hooks'] is TRUE or FALSE — but none of the additional classes are initiated by the code. Any suggestions welcome as I'm really at a loose end. Hooks strangeness [SOLVED] - El Forum - 06-18-2009 [eluser]roj[/eluser] I should add that I'm using the hook to load my own library at the 'post_system' stage, though I've tried at several others with no success either. Hooks strangeness [SOLVED] - El Forum - 06-18-2009 [eluser]roj[/eluser] For some reason changing the library name from MY_stats.php to simply stats.php did the trick. This make no sense, but it worked. |