Created
March 6, 2016 20:11
-
-
Save maximishchenko/45ed79e803bb7345fadb to your computer and use it in GitHub Desktop.
Yii2_get_controller_module_and_action_id
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 | |
echo Yii::$app->controller->id; | |
echo Yii::$app->controller->action->id; | |
echo Yii::$app->controller->module->id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment