Esempio n. 1
0
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Esempio n. 2
0
 public function deleteAction()
 {
     $params = array_merge(array("id" => null), My_Util::santinize(array_map("trim", $this->_request->getParams())));
     $result = My_Model_Quotes::delete($params);
     if ($result) {
         $this->alert("Delete successfully!", BASE_URL . "/quote/main/index");
     } else {
         $this->alert("Errors!", BASE_URL . "/quote/main/index");
     }
 }