Advertisement
fernandezekiel

Untitled

Jun 2nd, 2014
2,987
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function actionCreate($model, $scenario = null)
  2.     {
  3.         $model = new Token('create');
  4.  
  5.         $model->attributes = $this->module->mapInputs($model, $this->getInput(true));
  6.         $model->location_id = Yii::app()->user->location_id;
  7.  
  8.         if ($model->create()) {
  9.             $this->handleNew($model);
  10.         } else {
  11.             $this->handleError($model);
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement