Welcome Guest, Not a member yet? Register   Sign In
include main app controller only once
#12

[eluser]gerben[/eluser]
Well CF, the

php_flag display_errors On

method helped me determine the problem! I got an error saying that the class MY_Controller wasn't found. When I looked at the file itself, it seemed that I had spelled it wrong:

My_controller instead of MY_controller...

Still makes me wonder why my initial setup using app_controller didn't work, but I'll try that now. I knew it had to be something silly...

Thanks so much everybody for helping me out, I must say I'm overwhelmed by the support here on the forum, thanx so much!

And thx CF for the .htaccess trick. I always thought error_reporting(E_ALL); showed all php errors, but this is a great one to remember!

I'm looking forward to using the MY_Controller method in my apps, because it makes working with sitewide settings so much easier and cleaner!


Messages In This Thread
include main app controller only once - by El Forum - 08-24-2007, 09:15 AM
include main app controller only once - by El Forum - 08-24-2007, 10:19 AM
include main app controller only once - by El Forum - 08-24-2007, 10:55 AM
include main app controller only once - by El Forum - 08-24-2007, 11:10 AM
include main app controller only once - by El Forum - 08-24-2007, 11:43 AM
include main app controller only once - by El Forum - 08-24-2007, 11:48 AM
include main app controller only once - by El Forum - 08-24-2007, 12:05 PM
include main app controller only once - by El Forum - 08-24-2007, 02:08 PM
include main app controller only once - by El Forum - 08-24-2007, 03:03 PM
include main app controller only once - by El Forum - 08-24-2007, 04:57 PM
include main app controller only once - by El Forum - 08-24-2007, 05:05 PM
include main app controller only once - by El Forum - 08-24-2007, 05:29 PM
include main app controller only once - by El Forum - 08-24-2007, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB