Tuesday, June 11, 2013

YII Get active controller and action name

Current Controller
Yii::app()->controller->id;
and Current Action
Yii::app()->controller->action->id;

No comments:

Post a Comment