06 Jan 2014 Home » PHP • YII Framework » YII – Get name of current controller’s action YII – Get name of current controller’s action Posted in PHP, YII Framework By Maz On January 6, 2014 In Yii framework if we want to get name of current controller’s action. It can be done by following command. <?php echo Yii::app()->controller->action->id ?> 1234 <?php echo Yii::app()->controller->action->id?> Tags:current controller About Author maz Maz is a software engineer, and a Zend Certified Engineer . His area of expertise contains PHP /Mysql, Node JS / MongoDB, Angular JS, IOS and android. Related Posts Generate Date from week, day number and year. Yii Framework- Creating hidden field YII – Changing Language Leave a Reply Cancel reply Your email address will not be published. Required fields are marked *Comment Name * Email * Website This site uses Akismet to reduce spam. Learn how your comment data is processed.