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