Welcome Guest, Not a member yet? Register   Sign In
Error on IonAuth change address
#1

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
Reply
#2

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB