diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-06-25 23:31:16 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-06-25 23:31:16 +0200 |
| commit | d58f7cf02dc0c5ce2df2f0db00361fe673074be8 (patch) | |
| tree | de5b7064e43255a471de4cb469a7db71bce3d328 /protected/modules/cms/CmsModule.php | |
| parent | 82f5b7dc1890c03ebec349225e76ea0b22ec6c1d (diff) | |
Änderungen das alles tut, editor, cms
Diffstat (limited to 'protected/modules/cms/CmsModule.php')
| -rw-r--r-- | protected/modules/cms/CmsModule.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/protected/modules/cms/CmsModule.php b/protected/modules/cms/CmsModule.php new file mode 100644 index 0000000..79847ed --- /dev/null +++ b/protected/modules/cms/CmsModule.php @@ -0,0 +1,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; + } +} |
