Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
SiteController.php
1 <?php
2 /**
3  *
4  */
6 {
7  public function actionError()
8  {
9  if ($errorPage = Yii::app()->errorHandler->getErrorDisplayPage()) {
10  $this->redirect($errorPage);
11  } else {
12  $this->redirect('/');
13  }
14  }
15 
16  public function actionError400()
17  {
18  $this->render('error', array('error_code' => 400));
19  //echo 'error 400';
20  }
21 
22  public function actionError403()
23  {
24  $this->render('error', array('error_code' => 403));
25  //echo 'error 403';
26  }
27 
28  public function actionError404()
29  {
30  $this->render('error', array('error_code' => 404));
31  //echo 'error 404';
32  }
33 
34  public function actionError500()
35  {
36  $this->render('error', array('error_code' => 500));
37  //echo 'error 500';
38  }
39 
40  public function actionNoPermissions($path)
41  {
42  echo UserModule::t("You don't have permissions to {path}", array('{path}' => $path));
43  $contents = new Content(Yii::app()->getModule('contentSource')->getContentSource(), $path);
44  Yii::trace('Page Personalisation Attributes: ' . print_r($contents->getPersonalisationAttributes(), true), 'test');
45  }
46 }