/srv/vhosts/ymtcps.edu.hk/httpdocs/protected/controllers/SiteController.php(141)
129 $dataProvider->sort->defaultOrder = "publishDate DESC"; 130 $dataProvider->criteria->limit = 5; 131 132 Yii::app()->schoolWeb->defaultPageSize = 10; 133 $this->render('homework/index', array("dataProvider" => $dataProvider, "model" => $model)); 134 } 135 136 public function loadModel($name) 137 { 138 /** @var Pages $model */ 139 $model = Pages::model()->findByAttributes(array('uniqueName' => $name)); 140 if ($model === null || !$model->display) 141 throw new CHttpException(404, 'The requested page does not exist.'); 142 return $model; 143 } 144 145 public function actionContent($name) 146 { 147 $model = $this->loadModel($name); 148 149 return $this->renderPartial('/layouts/page/_iframe_content', [ 150 'content' => $model->getTranslation()->body 151 ]); 152 } 153
#0 |
+
–
/srv/vhosts/ymtcps.edu.hk/httpdocs/protected/controllers/SiteController.php(43): SiteController->loadModel() 38 39 if (!isset($_GET['name'])) { 40 $this->redirect('/'); 41 } 42 43 $model = $this->loadModel($_GET['name']); 44 45 if (!empty($model->password)) { 46 if (isset($_POST['Pages']) 47 && isset($_POST['Pages']['password']) 48 && md5($_POST['Pages']['password']) == $model->password |
#1 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(4207): SiteController->actionView() 4202 $methodName='action'.$this->getId(); 4203 $controller=$this->getController(); 4204 $method=new ReflectionMethod($controller, $methodName); 4205 if($method->getNumberOfParameters()>0) 4206 return $this->runWithParamsInternal($controller, $method, $params); 4207 $controller->$methodName(); 4208 return true; 4209 } 4210 } 4211 class CWebUser extends CApplicationComponent implements IWebUser 4212 { |
#2 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(3720): CInlineAction->runWithParams() 3715 { 3716 $priorAction=$this->_action; 3717 $this->_action=$action; 3718 if($this->beforeAction($action)) 3719 { 3720 if($action->runWithParams($this->getActionParams())===false) 3721 $this->invalidActionParams($action); 3722 else 3723 $this->afterAction($action); 3724 } 3725 $this->_action=$priorAction; |
#3 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(3705): CController->runAction() 3700 $this->missingAction($actionID); 3701 } 3702 public function runActionWithFilters($action,$filters) 3703 { 3704 if(empty($filters)) 3705 $this->runAction($action); 3706 else 3707 { 3708 $priorAction=$this->_action; 3709 $this->_action=$action; 3710 CFilterChain::create($this,$action,$filters)->run(); |
#4 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(3695): CController->runActionWithFilters() 3690 { 3691 if(($parent=$this->getModule())===null) 3692 $parent=Yii::app(); 3693 if($parent->beforeControllerAction($this,$action)) 3694 { 3695 $this->runActionWithFilters($action,$this->filters()); 3696 $parent->afterControllerAction($this,$action); 3697 } 3698 } 3699 else 3700 $this->missingAction($actionID); |
#5 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(1799): CController->run() 1794 { 1795 list($controller,$actionID)=$ca; 1796 $oldController=$this->_controller; 1797 $this->_controller=$controller; 1798 $controller->init(); 1799 $controller->run($actionID); 1800 $this->_controller=$oldController; 1801 } 1802 else 1803 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1804 array('{route}'=>$route===''?$this->defaultController:$route))); |
#6 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(1719): CWebApplication->runController() 1714 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1715 $_GET[$name]=$value; 1716 } 1717 else 1718 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1719 $this->runController($route); 1720 } 1721 protected function registerCoreComponents() 1722 { 1723 parent::registerCoreComponents(); 1724 $components=array( |
#7 |
+
–
/srv/vhosts/ymtcps.edu.hk/yii-1.1.21.733ac5/framework/yiilite.php(1236): CWebApplication->processRequest() 1231 public function run() 1232 { 1233 if($this->hasEventHandler('onBeginRequest')) 1234 $this->onBeginRequest(new CEvent($this)); 1235 register_shutdown_function(array($this,'end'),0,false); 1236 $this->processRequest(); 1237 if($this->hasEventHandler('onEndRequest')) 1238 $this->onEndRequest(new CEvent($this)); 1239 } 1240 public function end($status=0,$exit=true) 1241 { |
#8 |
+
–
/srv/vhosts/ymtcps.edu.hk/httpdocs/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true); 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |