コード例 #1
0
 public function __construct($package = 'Cms')
 {
     parent::__construct($package);
     $cache = Core::getObject('Core.Cache.CacheServer');
     $cache->setSourceDir('Cms.Cache.Items');
     // URL => content for media-attribute
     $this->cssFiles = array(URI::build('client/styles/stylesheet.css') => 'all');
     // URL => content for type-attribute
     $cdn = Config::get('ui.jquery_cdn');
     $this->scriptFiles = array(URI::build($cdn ? $cdn : 'client/scripts/jquery/jquery.js') => 'text/javascript', URI::build('client/scripts/jquery/jquery.plugins.js') => 'text/javascript');
     // Html to be placed into the head tag of the page (at last)
     $this->headHtml = array();
     Session::getObject();
     // Init session
     $this->breadcrumb = new Breadcrumb();
     $this->breadcrumb->add(Config::get('general.title'), URI::frontPage());
 }
コード例 #2
0
 public function logout()
 {
     $this->breadcrumb->add('Abmelden');
     $this->header();
     if (!Me::get()->loggedIn()) {
         CmsPage::error('Sie sind bereits abgelemdet!');
     } else {
         Session::getObject()->close();
         CmsPage::ok('Sie haben sich erfolgreich abgemeldet!', URI::frontPage());
     }
     $this->footer();
 }