當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gdn_Controller::Initialize方法代碼示例

本文整理匯總了PHP中Gdn_Controller::Initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gdn_Controller::Initialize方法的具體用法?PHP Gdn_Controller::Initialize怎麽用?PHP Gdn_Controller::Initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gdn_Controller的用法示例。


在下文中一共展示了Gdn_Controller::Initialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Initialize

 public function Initialize()
 {
     if ($this->DeliveryType() == DELIVERY_TYPE_ALL) {
         $this->Head = new HeadModule($this);
     }
     parent::Initialize();
 }
開發者ID:kidmax,項目名稱:Garden,代碼行數:7,代碼來源:appcontroller.php

示例2: Initialize

 /**
  * All requests to this controller must be made via JS.
  *
  * @throws PermissionException
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->Application = 'Yaga';
     if (!$this->Request->IsPostBack()) {
         throw PermissionException('Javascript');
     }
 }
開發者ID:hxii,項目名稱:Application-Yaga,代碼行數:13,代碼來源:class.reactcontroller.php

示例3: Initialize

 public function Initialize()
 {
     parent::Initialize();
     $this->_DeliveryMethod = DELIVERY_METHOD_JSON;
     //$this->SetHeader("Content-Type", "application/json; charset=utf-8");
     $this->SetHeader("Content-Type", "text/plain; charset=utf-8");
     $this->MasterView = 'json';
 }
開發者ID:gregroiusairlangga,項目名稱:vanilla-api-addon,代碼行數:8,代碼來源:class.apicontroller.php

示例4: Initialize

 /**
  * This is a good place to include JS, CSS, and modules used by all methods of this controller.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 1.0
  * @access public
  */
 public function Initialize() {
    // There are 4 delivery types used by Render().
    // DELIVERY_TYPE_ALL is the default and indicates an entire page view.
    if ($this->DeliveryType() == DELIVERY_TYPE_ALL)
       $this->Head = new HeadModule($this);
       
    // Call Gdn_Controller's Initialize() as well.
    parent::Initialize();
 }
開發者ID:nerdgirl,項目名稱:Forums-ILoveBadTV,代碼行數:17,代碼來源:class.skeletoncontroller.php

示例5: Initialize

 public function Initialize() {
    $this->Head = new HeadModule($this);
    $this->AddJsFile('jquery.js');
    $this->AddJsFile('jquery.livequery.js');
    $this->AddJsFile('jquery.form.js');
    $this->AddJsFile('jquery.popup.js');
    $this->AddJsFile('jquery.gardenhandleajaxform.js');
    $this->AddJsFile('global.js');
    $this->AddCssFile('style.css');
    $this->AddModule('GuestModule');
    parent::Initialize();
 }   
開發者ID:nerdgirl,項目名稱:Forums-ILoveBadTV,代碼行數:12,代碼來源:class.notificationscontroller.php

示例6: Initialize

 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.form.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('jquery.gardenhandleajaxform.js');
     $this->AddJsFile('global.js');
     $this->AddCssFile('admin.css');
     $this->MasterView = 'empty';
     parent::Initialize();
 }
開發者ID:kerphi,項目名稱:Garden,代碼行數:13,代碼來源:class.homecontroller.php

示例7: Initialize

 /**
  * Include JS and CSS used by all methods.
  *
  * Always called by dispatcher before controller's requested method.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->Head->AddTag('meta', array('name' => 'robots', 'content' => 'noindex'));
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.form.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('jquery.gardenhandleajaxform.js');
     $this->AddJsFile('global.js');
     $this->AddCssFile('style.css');
     parent::Initialize();
     Gdn_Theme::Section('Entry');
 }
開發者ID:edward-tsai,項目名稱:vanilla4china,代碼行數:22,代碼來源:class.entrycontroller.php

示例8: Initialize

 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->AddJsFile('js/library/jquery.js');
     $this->AddJsFile('js/library/jquery.livequery.js');
     $this->AddJsFile('js/library/jquery.form.js');
     $this->AddJsFile('js/library/jquery.popup.js');
     // $this->AddJsFile('js/library/jquery.menu.js');
     $this->AddJsFile('js/library/jquery.gardenhandleajaxform.js');
     $this->AddJsFile('js/global.js');
     $this->AddCssFile('style.css');
     $GuestModule = new GuestModule($this);
     $this->AddModule($GuestModule);
     parent::Initialize();
 }
開發者ID:sipp11,項目名稱:Garden,代碼行數:15,代碼來源:class.vanillacontroller.php

示例9: Initialize

 /**
  * Include JS, CSS, and modules used by all methods of this controller.
  * Called by dispatcher before controller's requested method.
  */
 public function Initialize()
 {
     if ($this->DeliveryType() == DELIVERY_TYPE_ALL) {
         $this->Head = new HeadModule($this);
     }
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.form.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('jquery.gardenhandleajaxform.js');
     $this->AddJsFile('global.js');
     $this->AddCssFile('style.css');
     parent::Initialize();
     $this->FireEvent('AfterInitialize');
 }
開發者ID:oMadMartigaNo,項目名稱:readjust-forum,代碼行數:19,代碼來源:class.pagecontroller.php

示例10: Initialize

 public function Initialize()
 {
     if ($this->DeliveryType() == DELIVERY_TYPE_ALL) {
         $this->Head = new HeadModule($this);
         $this->AddJsFile('jquery.js');
         $this->AddJsFile('jquery.livequery.js');
         $this->AddJsFile('global.js');
         $this->AddCssFile('style.css');
         $this->AddCssFile('candy.css');
         //$this->AddSideMenu();
         $this->AddJsFile('candy.js');
         // Application global js
     }
     parent::Initialize();
 }
開發者ID:unlight,項目名稱:Candy,代碼行數:15,代碼來源:class.contentcontroller.php

示例11: Initialize

 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->AddJsFile('js/library/jquery.js');
     $this->AddJsFile('js/library/jquery.livequery.js');
     $this->AddJsFile('js/library/jquery.form.js');
     $this->AddJsFile('js/library/jquery.popup.js');
     $this->AddJsFile('js/library/jquery.menu.js');
     $this->AddJsFile('js/library/jquery.gardenhandleajaxform.js');
     $this->AddJsFile('js/global.js');
     $this->AddCssFile('style.css');
     $GuestModule = new GuestModule($this);
     $GuestModule->MessageCode = "It looks like you're new here. If you want to take part in the discussions, click one of these buttons!";
     $this->AddModule($GuestModule);
     parent::Initialize();
 }
開發者ID:nbudin,項目名稱:Garden,代碼行數:16,代碼來源:activity.php

示例12: Initialize

 /**
  * Initializes a frontend controller with the Best Filter, New Discussion, and
  * Discussion Filter modules.
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->Application = 'Yaga';
     $this->Head = new HeadModule($this);
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery-ui.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('global.js');
     $this->AddCssFile('style.css');
     $this->AddCssFile('reactions.css');
     $this->AddModule('BestFilterModule');
     $this->AddModule('NewDiscussionModule');
     $this->AddModule('DiscussionFilterModule');
 }
開發者ID:hxii,項目名稱:Application-Yaga,代碼行數:20,代碼來源:class.bestcontroller.php

示例13: Initialize

 /**
  * Add JS, CSS, modules. Automatically run on every use.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.form.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('jquery.gardenhandleajaxform.js');
     $this->AddJsFile('jquery.expander.js');
     $this->AddJsFile('global.js');
     $this->AddCssFile('style.css');
     $this->AddCssFile('menu.css');
     $this->AddModule('GuestModule');
     parent::Initialize();
     $this->SetData('Breadcrumbs', array(array('Name' => T('Search'), 'Url' => '/search')));
 }
開發者ID:rnovino,項目名稱:Garden,代碼行數:22,代碼來源:class.searchcontroller.php

示例14: Initialize

 /**
  * Include JS, CSS, and modules used by all methods.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.form.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('jquery.gardenhandleajaxform.js');
     $this->AddJsFile('global.js');
     $this->AddCssFile('style.css');
     // Add Modules
     $this->AddModule('GuestModule');
     $this->AddModule('SignedInModule');
     parent::Initialize();
     Gdn_Theme::Section('ActivityList');
     $this->SetData('Breadcrumbs', array(array('Name' => T('Activity'), 'Url' => '/activity')));
 }
開發者ID:statico,項目名稱:openshift-origin-vanillaforums,代碼行數:25,代碼來源:class.activitycontroller.php

示例15: Initialize

 public function Initialize()
 {
     $this->Head = new HeadModule($this);
     $this->AddJsFile('jquery.js');
     $this->AddJsFile('jquery.livequery.js');
     $this->AddJsFile('jquery.form.js');
     $this->AddJsFile('jquery.popup.js');
     $this->AddJsFile('jquery.gardenhandleajaxform.js');
     $this->AddJsFile('global.js');
     if (in_array($this->ControllerName, array('profilecontroller', 'activitycontroller'))) {
         $this->AddCssFile('style.css');
     } else {
         $this->AddCssFile('admin.css');
     }
     $this->MasterView = 'admin';
     parent::Initialize();
 }
開發者ID:kerphi,項目名稱:Garden,代碼行數:17,代碼來源:class.settingscontroller.php


注:本文中的Gdn_Controller::Initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。