public static function getInstance() { if (null === self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
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"); } }