beforeExecuteRoute()
beforeExecuteRoute(\Phalcon\Events\Event $event, \Phalcon\Mvc\Dispatcher $dispatcher)
Watch beforeExecuteRoute event
Parameters
| \Phalcon\Events\Event | $event | |
| \Phalcon\Mvc\Dispatcher | $dispatcher |
StaticViewListener watches dispatcher actions.
It will only run on the FIRST loop and checks to see if the current route is cached. If it is, forwards to the static view loader.