Hi, is it possible to get the "action" controller method name in the view layer? Like in the form of a string?
echo(Yii::something()->action);
// outputs
create
For example?
Hi, is it possible to get the "action" controller method name in the view layer? Like in the form of a string?
echo(Yii::something()->action);
// outputs
create
For example?
Yii::app()->controller->id
Yii::app()->controller->action->id
More Here
Just what I needed, thanks.