You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And would be nice, if you look at #183. This is really very important feature for Volt.
So and I have one more question.
I've created BaseController that extends Phalcon/Mvc/Controller, and when I want to get current controller name I need to manage dispatcher in di and call
$this->dispatcher->getControllerName()
besides to call just
$this->view->getControllerName() //returns empty string
or just
$this->getControllerName() // of course undefined method
Maybe there is another way to get information without calling dispatcher?
The text was updated successfully, but these errors were encountered:
$this->view->getControllerName() return nothing in the controller because the the view component doesn't know what controller/action must be rendered. This only happens after the dispatch loop has ended.
Only the dispatcher has the information you need,
Also, there seems to be a bug with the json_encode filter, thanks
Have problem with filter json_encode
in template
And would be nice, if you look at #183. This is really very important feature for Volt.
So and I have one more question.
I've created BaseController that extends Phalcon/Mvc/Controller, and when I want to get current controller name I need to manage dispatcher in di and call
Maybe there is another way to get information without calling dispatcher?
The text was updated successfully, but these errors were encountered: