public function action_view($request) { $output = new DKY_Output(); $output->template = DKY_PATH_ROOT . "/template/master.html.php"; $staticBlock = new Static_Block($request); $output->addBlock($staticBlock, "main"); $output->processRequest($request); $output->display(); }
public function action_add_item($request) { $output = new DKY_Output(); $output->template = DKY_PATH_ROOT . "/template/master.html.php"; $editBlock = new Menu_Block_ItemEdit($request); $output->addBlock($editBlock, "main"); $output->processRequest($request); $output->display(); }
public function action_view_login($request) { $output = new DKY_Output(); $output->template = DKY_PATH_ROOT . "/template/login.html.php"; if (empty($_SESSION["user_id"])) { $loginBlock = new User_Block_Login($request); $output->addBlock($loginBlock, "main"); } else { $logoutBlock = new User_Block_Logout($request); $output->addBlock($logoutBlock, "main"); } $output->processRequest($request); $output->display(); }