• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
form redirect not work!

#1
Hello,
i install CI4 and i have form login . after submit the redirect page display me error:
 Controller or its method is not found: App\Controllers\Admin::login

but on router i have:
$routes->get('/admin/login', 'Users::login');

Why?!! where is the error?
and the strange thing when i write url on navigator the page opened!

please help is urgent!!
Reply

#2
You should omit the / from your get.
https://codeigniter.com/user_guide/incom...l#examples
Reply

#3
(04-03-2020, 10:46 AM)jreklund Wrote: You should omit the / from your get.
https://codeigniter.com/user_guide/incom...l#examples
thanks is help me
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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