Tuesday, 6 December 2016

YII - Get Controller name

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;

?>
//

 

To read More about from here posted by Maz


Previous Post
Next Post

About Author

0 comments: