CodeIgniter Forums

Full Version: something weird with route config
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here how i check the router: System/Router/Router.php function: handle(string $uri = null)

PHP Code:
if ($this->checkRoutes($uri))

This happens when I edit App/Config/Routes.php,
When I have:

PHP Code:
The result on controller path: (http://localhost/samsung)

PHP Code:
No backslash here. Also dollar sign shown.
But When im using:
PHP Code:

The result is: (http://localhost/samsung)

PHP Code:
Dollar sign changed with segment.

Not what I expect, but this trick is working for me. Although vendor controller need using prefix