1
0
www.mikescher.com/www/protected/controllers/SiteController.php

27 lines
410 B
PHP
Raw Normal View History

2014-05-13 12:40:42 +02:00
<?php
class SiteController extends Controller
{
2014-05-14 11:15:32 +02:00
public $selectedNav = '';
2014-05-13 12:40:42 +02:00
public function actionIndex()
{
$this->render('index');
}
public function actionError()
{
if($error=Yii::app()->errorHandler->error)
{
if(Yii::app()->request->isAjaxRequest)
echo $error['message'];
else
$this->render('error', $error);
}
}
2014-05-14 11:15:32 +02:00
public function actionAbout()
2014-05-13 12:40:42 +02:00
{
2014-05-14 11:15:32 +02:00
$this->render('about');
2014-05-13 12:40:42 +02:00
}
}