?? moviecontroller.php
字號:
<?php/**/class MovieController extends Easy_Controller_Action{ public function Init(){ $this->_View->skin = $this->config['template']; $this->_View->Template = new Template(); // $this->_View->moviearea = $this->mconf['area']; $this->_View->config = $this->config; } public function viewAction(){ $movid = intval($this->_Request->getParam('movid')); $make = new MakeModel(); $make->view = &$this->_View; echo $make->makeMovie($movid); return true; } public function vipAction() { $User = new UsersModel(); $uid = intval($this->_Request->getCookie('uid')); $row = $User->login(array('uid'=> $uid)); if ($row['usergroup'] == $this->config['vip']){ exit($this->_View->render($this->_View->skin.'/vip')); }else{ $this->_Request->redirect(''); exit; } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -