override create action Active controller yii2 code example
Example: yii2 rest override update action
public function actions()
{
$actions = parent::actions();
unset($actions['create']);
return $actions;
}
public function actions()
{
$actions = parent::actions();
unset($actions['create']);
return $actions;
}