controller_name()
Class Public methods
Returns the last part of the controller's name, underscored, without
the ending Controller
. For instance, PostsController returns
posts
. Namespaces are left out, so Admin::PostsController returns
posts
as well.
Returns
-
string
Please login to continue.