I'm not sure why my modules aren't working.
env: WSL linux, yaf(latest), php 7.2
routes in conf:
application.dispatcher.defaultModule = Default
application.dispatcher.defaultController = FirstRun
application.dispatcher.defaultAction = Index
routes.firstrun2.type="rewrite"
routes.firstrun2.match="/"
routes.firstrun2.route.module = Default
routes.firstrun2.route.controller=Firstrun
routes.firstrun2.route.action=Index
In chrome, I go to: http://localhost/
I var_dump the app and get this for routes
[_request:protected] => Yaf_Request_Http Object
(
[module] =>
[controller] =>
[action] =>
[method] => GET
[params:protected] => Array
(
)
[language:protected] =>
[_exception:protected] =>
[_base_uri:protected] =>
[uri:protected] =>
[dispatched:protected] =>
[routed:protected] =>
and this for defaults:
[_auto_render:protected] => 1
[_return_response:protected] =>
[_instantly_flush:protected] =>
[_default_module:protected] => Default
[_default_controller:protected] => Firstrun
[_default_action:protected] => index
)
This when I dump getRoutes
Array
(
[0] => Default
[1] => Admin
)
I would expect this:
(
[module] => Default
[controller] => FirstRun
[action] => Index
)
I have no idea what I could be doing wrong?
I'm not sure why my modules aren't working.
env: WSL linux, yaf(latest), php 7.2
routes in conf:
In chrome, I go to: http://localhost/
I var_dump the app and get this for routes
and this for defaults:
This when I dump getRoutes
I would expect this:
I have no idea what I could be doing wrong?