06 Jan 2014
YII – Get Controller name
In Yii framework if we want to get name of current controller name. It can be done by following command.
<?php Yii::app()->controller->id; ?>
In Yii framework if we want to get name of current controller name. It can be done by following command.
<?php Yii::app()->controller->id; ?>