Created
September 5, 2013 20:20
-
-
Save rootbear/6455617 to your computer and use it in GitHub Desktop.
Name of current module controller or action from Yii view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Module | |
if(isset($this->module)): echo $this->module->getName(); endif; | |
// Controller | |
echo $this->ID; | |
// Action | |
echo $this->action->id; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment