Jump to content

My Routes aren't working or for some reason my app is broken!?


Recommended Posts

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!

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');

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.