adgower Posted July 15, 2009 Share Posted July 15, 2009 Okay, so you can go to http://fc.gowerpowered.com but if you go to http://fc.gowerpowered.com/friendcodes it says that url doesn't exist! and if I look in my error log it says I don't have my MODEL_PATH defined, and I do I my MODEL_PATH defined! By the way this is a MVC app! please help me find out what is going on, I have been looking at it for two days! Quote Link to comment https://forums.phpfreaks.com/topic/166070-my-routes-arent-working-or-for-some-reason-my-app-is-broken/ Share on other sites More sharing options...
JonnoTheDev Posted July 15, 2009 Share Posted July 15, 2009 How can anybody help without posting any source code? Also have you checked you have applied a valid mod rewrite rule? Quote Link to comment https://forums.phpfreaks.com/topic/166070-my-routes-arent-working-or-for-some-reason-my-app-is-broken/#findComment-875816 Share on other sites More sharing options...
adgower Posted July 15, 2009 Author Share Posted July 15, 2009 here is my .htaccess file RewriteEngine On RewriteRule !(\.gif|\.png|\.jpe?g|\.css|\.js|\.php|^public/.*)$ index.php [nocase,last] and here is me defining my MODEL_PATH define('MODEL_PATH', SERVER_ROOT.APP_ROOT.DS.'models'.DS); and here is where I include my config.php file where I have my defined MODEL_PATH include('config.php'); and here is where it fails when you go to http://fc.gowerpowered.com/friendcodes include(MODEL_PATH.'friendcode.php'); Quote Link to comment https://forums.phpfreaks.com/topic/166070-my-routes-arent-working-or-for-some-reason-my-app-is-broken/#findComment-875849 Share on other sites More sharing options...
JonnoTheDev Posted July 15, 2009 Share Posted July 15, 2009 print this constant out to the errornous page: MODEL_PATH and see what it contains. I bet you have issues with your include paths. Quote Link to comment https://forums.phpfreaks.com/topic/166070-my-routes-arent-working-or-for-some-reason-my-app-is-broken/#findComment-875854 Share on other sites More sharing options...
adgower Posted July 15, 2009 Author Share Posted July 15, 2009 print this constant out to the errornous page: MODEL_PATH and see what it contains. I bet you have issues with your include paths. like this?? echo '<pre>'.print_r(get_defined_constants(), true).'</pre>'; Quote Link to comment https://forums.phpfreaks.com/topic/166070-my-routes-arent-working-or-for-some-reason-my-app-is-broken/#findComment-875871 Share on other sites More sharing options...
JonnoTheDev Posted July 16, 2009 Share Posted July 16, 2009 print MODEL_PATH; exit(); will do Quote Link to comment https://forums.phpfreaks.com/topic/166070-my-routes-arent-working-or-for-some-reason-my-app-is-broken/#findComment-876293 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.