Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionCreate($model, $scenario = null)
- {
- $model = new Token('create');
- $model->attributes = $this->module->mapInputs($model, $this->getInput(true));
- $model->location_id = Yii::app()->user->location_id;
- if ($model->create()) {
- $this->handleNew($model);
- } else {
- $this->handleError($model);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement