示例#1
0
 public function __construct()
 {
     parent::__construct();
     // GetSite contains information about the site - here we can add javascript and change styling etc.
     $this->getSite()->addWrappedCss('fonts.css');
     $this->getSite()->addWrappedCss('toolkit-startup.css');
     $this->getSite()->addWrappedCss('application-startup.css');
     $this->getSite()->addWrappedCss('jquery.dialog.css');
     $this->getSite()->addWrappedJs('jquery.min.js');
     $this->getSite()->addWrappedJs('toolkit.js');
     $this->getSite()->addWrappedJs('application.js');
     $this->getSite()->addWrappedJs('jquery.dialog.js');
     $this->getSite()->addWrappedJs('global.js');
     $this->mainMenu->addItem(lang('Home'), url('home'));
     $this->mainMenu->addItem(lang('Register'), url('user.register'));
     $this->mainMenu->addItem(lang('Sign in'), url('user.login'));
 }
示例#2
0
 public function init()
 {
     parent::init();
 }