query("NotiziaModel", array('$and'=>array(array("status"=>NotiziaModel::STATUS_ACCEPTED),array("category"=>$category))), array("sort"=>array("about.data"=>-1),"limit"=>10) ); } else{ GUIHandler::redirect("index.php"); } }catch(GUIException $ex){ $error = $ex->getMessage(); }catch (Exception $exec){ $msg = LogModel::fromException($exec); GlobalVariables::get("dao")->save($msg); GUIHandler::redirect("index.php"); } ?>