init() 공개 메소드

}}}
public init ( )
예제 #1
0
파일: Login.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $company_m = $this->add('xepan\\base\\Model_ConfigJsonModel', ['fields' => ['company_name' => "Line", 'company_owner' => "Line", 'mobile_no' => "Line", 'company_email' => "Line", 'company_address' => "Line", 'company_pin_code' => "Line", 'company_description' => "xepan\\base\\RichText", 'company_logo_absolute_url' => "Line", 'company_twitter_url' => "Line", 'company_facebook_url' => "Line", 'company_google_url' => "Line", 'company_linkedin_url' => "Line"], 'config_key' => 'COMPANY_AND_OWNER_INFORMATION', 'application' => 'communication']);
     // $company_m->add('xepan\hr\Controller_ACL');
     $company_m->tryLoadAny();
     $this->template->trySet('company_name', $company_m['company_name']);
 }
예제 #2
0
 function init()
 {
     parent::init();
     if ($this->template->hasTag('UserMenu')) {
         if (isset($this->app->auth)) {
             $u = $this->add('Menu_Horizontal', null, 'UserMenu');
             $u->addMenu('John Smith')->addItem('Logout', 'logout');
         } else {
             $this->template->tryDel('UserMenu');
             $this->template->tryDel('user_icon');
         }
     }
 }
예제 #3
0
파일: Fluid.php 프로젝트: samratcis/atk4
 function init()
 {
     parent::init();
     if ($this->template->hasTag('UserMenu')) {
         if (isset($this->app->auth)) {
             $this->user_menu = $this->add('Menu_Horizontal', null, 'UserMenu');
             $this->user_menu->addMenu($this->app->auth->model[$this->app->auth->model->title_field])->addItem('Logout', 'logout');
         } else {
             $this->template->tryDel('UserMenu');
             $this->template->tryDel('user_icon');
         }
     }
 }
예제 #4
0
 function init()
 {
     parent::init();
     $this->api->jui->addStaticStylesheet('bootstrap.min', '.css');
     $this->api->jui->addStaticStylesheet('animate.min', '.css');
     $this->api->jui->addStaticStylesheet('font-awesome.min', '.css');
     $this->api->jui->addStaticStylesheet('lightbox', '.css');
     $this->api->jui->addStaticStylesheet('main', '.css');
     $this->api->jui->addStaticStylesheet('responsive', '.css');
     $this->api->jui->addStaticStylesheet('presets/preset1', '.css');
     $this->api->jui->addStaticInclude('http://maps.google.com/maps/api/js?sensor=true', '.css', '.js');
     $this->api->jui->addStaticInclude('highcharts', '.js');
     $this->api->jui->addStaticInclude('map', '.js');
     $this->api->jui->addStaticInclude('in-all', '.js');
     $this->js(true)->_load('bootstrap.min');
     $this->js(true)->_load('wow.min');
     $this->js(true)->_load('mousescroll');
     $this->js(true)->_load('smoothscroll');
     $this->js(true)->_load('jquery.countTo');
     $this->js(true)->_load('lightbox.min');
     $this->js(true)->_load('main');
     $this->js(true)->_load('svc');
 }