public static function getInstance() { if (self::$_instance == NULL) { self::$_instance = new App_Models_IshaliModel(); self::$_instance->_db = App_Storage_Mysql_Connector::getInstance(); } return self::$_instance; }
public function delpageAction() { $id_encode = $_GET['idpage']; $id_decode = base64_decode($id_encode); $this->view->pageid = substr($id_decode, 2, strlen($id_decode)); App_Models_IshaliModel::getInstance()->remove($this->view->pageid); $url = FB_APP_DOMAIN . '/ishali'; $this->_redirect($url); }
public function listthisinhAction() { $id_encode = $_GET['idpage']; $id_decode = base64_decode($id_encode); $this->view->pageid = substr($id_decode, 2, strlen($id_decode)); // exit; $result = App_Models_IshaliModel::getInstance()->getListthisinh($this->view->pageid); $this->view->listthisinh = $result; }