Welcome Guest, Not a member yet? Register   Sign In
routing problem with an <a> anchor?
#1

[eluser]gloosemo[/eluser]
I have the following anchor on a page

Code:
<a href='register'>Register</a>

in my routes.php file, i have defined:
Code:
$route['register'] = "register";
and in my controllers folder, i have a file called register.php and a class called Register.
Code:
class Register extends CI_Controller {

public function index() { ... }

}


But when i click the anchor, the page doesnt load, it just says 404 page not found.

What am i doing wrong?

thanks, G








Theme © iAndrew 2016 - Forum software by © MyBB