Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

get controller name, action name

Hi all, how to get controller name, and action name in volt view , in codeigniter i can use: $this->uri->segment(1), or $this->router->fetchclass() and $this->router->fetchmethod().

thanks!



81.8k
Accepted
answer

Controller Name:

{{ dispatcher.getControllerName() }}

Action Name:

{{ dispatcher.getActionName() }}