Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: AUREO SOUTO
Added: Dec 12, 2018 2:57 PM
Views: 14
Tags: no tags
  1. echo Yii::$app->controller->id; //current controller id
  2.  
  3.  
  4. echo Yii::$app->controller->action->id; //current controller action id