Welcome Guest, Not a member yet? Register   Sign In
Routing - ignore first segment
#11

It's from our point of view nothing that's ment to work, but if it could work. It would be by any of those methods, but somewhere along in the code it appears to ignore variable replacements for controller, as it interprets them literally.

I looked over the code, and the reason for it not working are \$2, it thinks it's a literal string, and not a replaceable variable any more.
Code:
'\App\Controllers\$2::$3/$4'
'([^/]+)/([^/]+)/(.*)'
'\App\Controllers$2::haimethod/'
'ignore/haicontroller/haimethod'
'\App\Controllers$2::haimethod/'

The router needs to be re-written to this to work, as I can't find a hack to break free.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB