Yii::app()->controller->action->id not working
Posted 28 December 2014 - 12:55 AM
Yii::app()->controller->action->id works fine when calling it from a view but doesn't work when calling from Controller.php. Yii::app()->controller->action returns null in Controller.php
Posted 28 December 2014 - 07:18 AM
Posted 28 December 2014 - 07:33 AM
ok, thanks for the information. Does this mean that is not possible to retrieve the action in the Controller.php?