Welcome Guest, Not a member yet? Register   Sign In
Illegal Offset in Route.php
#1

I am currently trying to make things clean and neat and using the same endpoints for different things such as GET to /login - shows login page but POST to /login starts the login process. Going by the docs you can do this: 

PHP Code:
$route['login'] = 'auth/login';
$route['login']['POST'] = 'auth/loginProcess'

BUT this then throws the following error:

Quote:A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'POST'
Filename: config/routes.php
Line Number: 57

I tried putting ['GET'] against the first line but didn't seem to make any difference. Any help much appreciated.
Reply


Messages In This Thread
Illegal Offset in Route.php - by purpleprawn - 12-01-2018, 07:16 PM
RE: Illegal Offset in Route.php - by Perhood - 12-03-2018, 05:59 AM
RE: Illegal Offset in Route.php - by purpleprawn - 12-03-2018, 06:34 PM
RE: Illegal Offset in Route.php - by InsiteFX - 12-04-2018, 05:28 AM
RE: Illegal Offset in Route.php - by dave friend - 12-04-2018, 12:37 PM
RE: Illegal Offset in Route.php - by purpleprawn - 02-11-2019, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB