• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.