I created a new view for a page and it works fine in my sandbox but when I pushed the code to the ec2 instance the link now gives me a 404 error. I edited routes to include it initially but it gave me the 404 error in my test environment so I removed it. I have :
As a side note, the 404 error is coming from fuel and I have no other problems with any of the other views that I have created so I know its not a rewrite rule or apache problem. There has to be something different in either the way I created this one or something I should do different because this is a link on the page rather that in the nav bar but I can't seem to find it.
Ok, then providing you don't have any routing that blocks access to this contoller, /wtools or /wtools/index shouold just work.
There is nothing in your Controller_Auth that throws a NonFoundException? If not, I don't see any reason why it would give a 404.
Are you using the standard .htaccess on your live server, or did you construct something yourself? If your rewrite rules are wrong, it can also lead to incorrect requests. Which brings me to the question of why you use index.php in your URL's. Don't you rewrite them?
Its just the standard .htaccess and it works for everything else so I am inclined to think its not.. I checked to ensure that the local .htaccess is the same as the one on the instance and there are no differences. There is nothing in Controller_Auth that throws an exception. I am gonna post my routes.php because I did alter it today in my attempts to fix the issue. I added the "'welcome/(:any)' => 'welcome/$1',". The wtools.php is in views/welcome/
<?php
return array(
'_root_' => 'welcome/dashboard', // The default route
The location of the view is not relevant, the location of the controller, and the code in it is. Missing views don't generate a 404, missing controllers do. Also, the name/location of the view isn't relevant, your request goes to a controller action.
So I don't understand why you add routes for 'welcome', if your controller is called Controller_Wtools? There is no "welcome" in the controller name, nor the method name?
Ok, so I figured out the problem. I had failed to add the new files to the repo so they were never pushed. As soon as I did that my problem was fixed. I knew it had to be a silly stupid error of my own but I was failing to check my steps involving more than just the code. Thanks for your time and sorry for any inconvenience.