diff options
Diffstat (limited to 'protected/controllers/VeranstaltungController.php')
| -rw-r--r-- | protected/controllers/VeranstaltungController.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/protected/controllers/VeranstaltungController.php b/protected/controllers/VeranstaltungController.php index 1f55d0b..6333702 100644 --- a/protected/controllers/VeranstaltungController.php +++ b/protected/controllers/VeranstaltungController.php @@ -15,7 +15,7 @@ class VeranstaltungController extends Controller { return array( 'accessControl', // perform access control for CRUD operations - array('COutputCache - index,now','duration'=>3600,'varyByParam'=>array('id','slug')), + array('COutputCache - index,now,stage','duration'=>3600,'varyByParam'=>array('id','slug')), ); } @@ -28,7 +28,7 @@ class VeranstaltungController extends Controller { return array( array('allow', // allow admin user to perform 'admin' and 'delete' actions - 'actions'=>array('index','view','now'), + 'actions'=>array('index','view','now', 'stage'), 'users'=>array('*'), ), array('deny', // deny all users @@ -79,6 +79,21 @@ class VeranstaltungController extends Controller } /** + * Displays a particular model. + * @param integer $id the ID of the model to be displayed + */ + public function actionStage($id) + { + $model = Standort::model()->findByPk($id); + if($model===null) + throw new CHttpException(404,'The requested page does not exist.'); + + $this->render('stage',array( + 'model'=>$model, + )); + } + + /** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer the ID of the model to be loaded |
