Before Action Methoond In Yii 1 Controller

[Solved] Before Action Methoond In Yii 1 Controller | Php Frameworks Yii - Code Explorer | yomemimo.com
Question : Before Action methoond in Yii 1 controller

Answered by : elated-eel-pyzbhprwu62z

class UniversityDegreeController extends Controller
{ protected function beforeAction($action) { $actionId = $this->getAction()->getId(); echo $actionId; // 'index' | 'update' | 'delete' return parent::beforeAction($action); }
}

Source : https://gist.github.com/yesnik/e79c50a2eaff3b986b2f504f01d609a7 | Last Update : Tue, 16 Nov 21

Answers related to Before Action methoond in Yii 1 controller

Code Explorer Popular Question For Php Frameworks Yii