Ejemplo n.º 1
0
 /**
  * Request a category be stored
  *
  * @param $input
  * @return mixed
  */
 public function requestStore($input)
 {
     try {
         $this->CategoryManager->storeNewCategory($input);
     } catch (CategoryAlreadyExistsException $e) {
         \Session::flash('dvs-error-message', "The category {$input['name']} already exists!");
     }
     return $this->Redirect->back();
 }