29 lines
625 B
PHP
29 lines
625 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
class PortalController extends Controller {
|
||
|
|
|
||
|
|
public function filters() {
|
||
|
|
return array(
|
||
|
|
'accessControl',
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function accessRules() {
|
||
|
|
return array(
|
||
|
|
array('allow', // allow admin user to perform 'admin' and 'delete' actions
|
||
|
|
'actions' => array('index'),
|
||
|
|
'users' => array('@'),
|
||
|
|
),
|
||
|
|
array('deny', // deny all users
|
||
|
|
'users' => array('*'),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function actionIndex() {
|
||
|
|
$this->render('index');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|