I am using hmvc for creating a register page :-
In the url now I am typing :- http://localhost/CI/index.php/user/registration
user is the module name
controller :- registration.php
<?php
class Registration extends MX_Controller{
function index() {
$this->load->view('homepage');
}
function register(){
$this->load->view('registrationPage');
}
}
?>
view :- homepage.php
<html>
<body>
<a href="registration/register">register</a>
</body>
</html>
the problem is that in my url i have to type http://localhost/CI/index.php/user/registration/register
for coming to registration page.
I want http://localhost/CI/index.php/user/register
how can we do this.?
setting base_url is not working and setting routes ia also not working.
Is this possible to go to any page without giving module name in the url..?