Example #1
0
 /**
  * Form saving
  * 
  * @return boolean
  */
 public function save()
 {
     if ($this->validate()) {
         $this->model = new Project();
         $this->model->title = $this->title;
         $this->model->is_active = 1;
         $this->model->is_deleted = 0;
         $this->model->sort = Project::getActiveMaxSort() + 1;
         return $this->model->save(false);
     }
     return false;
 }