Welcome Guest, Not a member yet? Register   Sign In
404 - must be something stupid. Anyone online to help me debug this?
#1

[eluser]MEM[/eluser]
I was working fine. Then, I decided to change the file names for a proper name convention. I've mess this up. :S

I'm trying to make:

http://www.mysite.com

I'm getting a 404.


The weird thing about this is that, if I change my default controller to:
Code:
<?php
echo "hi";
?>

And then I do: http://www.mysite.com

I get both, the "hi" and a 404 error!

Any guess what it could be?
Regards,
Márcio
#2

[eluser]MEM[/eluser]
Solved. I have changed the name of the file controller, but I should also change the name of that class controller as well.

Let's say we have:
c_mycontroller.php

I cannot have:
Class mycontroller extends Controller
{
...

I must have:
Class C_mycontroller extends...



Why? Confused
Because I haven't read here:
http://ellislab.com/codeigniter/user-gui...html#hello




Theme © iAndrew 2016 - Forum software by © MyBB