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