Welcome Guest, Not a member yet? Register   Sign In
Anchoring to Controllers - one produces a 404, one doesn't
#1

[eluser]Will Cheung[/eluser]
Hi all Igniteers,

Here's a quick one that's baffling me - I have written a simple link via the URL helper that basically redirects back to the index page of the currently active user, with this:-

Code:
echo anchor('user_controller', '<span>Cancel and go back to user menu</span>', array('class' => 'rbutton'));


which generates:

Code:
<a href="http://www.my_base_url.co.uk/index.php/user_controller" class="rbutton"><span>Cancel and go back to user menu</span></a>


Baffling thing is, works on my localhost dev box (Windows XP) but gives a 404 on the live environment (Linux). Other links etc seem to work though...

All suggestions appreciated!


Will
#2

[eluser]pistolPete[/eluser]
Do you use a .htaccess file?
Maybe a problem with case sensitivity? What's the file name of the controller?
#3

[eluser]Will Cheung[/eluser]
Many thanks - turns out it was the case sensitivity.

Filename was: User_controller.php

my anchor tag had: user_controller


...time for a mass find and replace I feel...




Theme © iAndrew 2016 - Forum software by © MyBB