CodeIgniter Forums

Full Version: Error on IonAuth change address
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have problem with my app. I have login page and I set route:

PHP Code:
$route['logowanie'] = 'Back/index/Login'

But when I get error on login, my address set:
Code:
mydomain.com/Back/index/Login
but I want to stay on my route -
Code:
mydomain.com/logowanie
.

Where is problem? I using IonAuth library
Hey @vertisan, let me understand you Controller and Method

You have a Controller: Back , right?
You have a Method: index and Login, right?

My question is, why you call index method.

Good:

PHP Code:
class Back extends CI_Controller {
    public function 
index()
    {
 
       echo 'index page';
 
   }

    public function 
Login()
    {
 
       echo 'Login page';
 
   }



Now add your Route:
Code:
$route['logowanie'] = 'Back/Login';

and should work