Is there a way to figure out what the current controller is from within the view?
For an example of why I would want to know this: if several controllers share the s
controller_path holds the path of the controller used to serve the current view. (ie: admin/settings).
controller_path
admin/settings
and
controller_name holds the name of the controller used to serve the current view. (ie: settings).
controller_name
settings