public function saveAction()
 {
     $app = App::getInstance();
     $item = Options::build($_POST);
     $item->last_edit = MYSQL_NOW();
     $item->store();
     $app->redirect(__HOME__ . '/options/');
 }
示例#2
0
 function doSearch()
 {
     $data = array();
     foreach ($_POST as $key => $value) {
         if ($value != "" && $value != null) {
             $data[$key] = $value;
         }
     }
     //if(count($data)>0){
     echo redirect(substr(get_class($this), 0, -10) . "/search/1/" . Options::build($data));
     /*
     		}else{
     	echo redirect(substr(get_class($this),0,-10)."/todos");
     }
     */
     return false;
 }