blob: 79847edf18d681ced4c83b784f8b786b11d03313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
Yii::setPathOfAlias('CmsAssets' , dirname(__FILE__) . '/assets/');
class CmsModule extends CWebModule
{
public $version = '0.4';
public $layout = 'cms';
public $dateformat = 'd.m.Y G:i:s';
public $enableHtmlPurifier = true;
public $rtepath = false; // Don't use an Rich text Editor
public $rteadapter = false; // Don't use an Adapter
public $ckfinderPath = false; // do not use CKFinder
// Which languages do your cms serve?
public $languages = array('en' => 'English', 'de' => 'Deutsch');
// If a page is requested by CMS::render and not found, should
// a 404 be raised or the content simply not be delivered?
public $strict404raising = false;
public function init()
{
$this->setImport(array(
'cms.models.*',
'cms.components.*',
'cms.controllers.*',
));
}
public function beforeControllerAction($controller, $action)
{
if(parent::beforeControllerAction($controller, $action))
{
return true;
}
else
return false;
}
}
|