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


PHP Controller_Base::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct($args)
 {
     parent::__construct($args);
     if ($this->user['group'] != 'root') {
         $this->error('Ошибка доступа');
     }
 }
開發者ID:kostarev,項目名稱:test,代碼行數:7,代碼來源:access.php

示例2: __construct

 public function __construct($registry)
 {
     global $lang;
     parent::__construct($registry);
     $this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
     $this->presenter()->assign("disable_scrolling", true);
     $this->presenter()->assign("disable_ring", true);
 }
開發者ID:ntoskrnl,項目名稱:ukraine,代碼行數:8,代碼來源:contacts.php

示例3: __construct

 public function __construct($registry)
 {
     global $lang;
     parent::__construct($registry);
     $this->presenter()->addScript(false, "js/jquery-1.4.2.min.js");
     $this->presenter()->addScript(false, "js/pro.scroll.0.3.js");
     $this->presenter()->addScript(true, $this->SCRIPT);
     $this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
 }
開發者ID:ntoskrnl,項目名稱:ukraine,代碼行數:9,代碼來源:prices.php

示例4: __construct

 public function __construct($registry)
 {
     global $lang;
     parent::__construct($registry);
     $this->presenter()->addScript(false, "js/jquery.js");
     $this->presenter()->addScript(false, "js/easySlider1.7.js");
     $this->presenter()->addScript(true, $this->SCRIPT);
     $this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
     $this->presenter()->assign("page_menu", "{$lang}/_parts/page_menu.tpl");
 }
開發者ID:ntoskrnl,項目名稱:ukraine,代碼行數:10,代碼來源:projects.php

示例5: __construct

 public function __construct($registry)
 {
     global $lang;
     parent::__construct($registry);
     $this->presenter()->assign("header_aside", "{$lang}/_parts/header_aside.tpl");
     //$this->presenter()->assign("page_menu", "$lang/_parts/page_menu.tpl");
     $this->presenter()->addStyle(false, "js/jquery.jscrollpane2.css");
     $this->presenter()->addStyle(true, $this->STYLE);
     $this->presenter()->addScript(false, "js/jquery-1.6.1.min.js");
     $this->presenter()->addScript(false, "js/jquery.mousewheel.js");
     $this->presenter()->addScript(false, "js/jquery.jscrollpane.js");
     $this->presenter()->addScript(true, $this->SCRIPT);
 }
開發者ID:ntoskrnl,項目名稱:ukraine,代碼行數:13,代碼來源:customers.php

示例6: __construct

 public function __construct($args)
 {
     parent::__construct($args);
     SiteRead::me()->access('panel-settings');
 }
開發者ID:kostarev,項目名稱:test,代碼行數:5,代碼來源:settings.php

示例7: __construct

 /**
  * 構造函數。(ok)
  *
  */
 public function __construct()
 {
     parent::__construct();
 }
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:8,代碼來源:AvatarFlashUpload.php

示例8:

 function __construct()
 {
     $this->layouts = "first_layouts";
     parent::__construct();
 }
開發者ID:sdudnikov,項目名稱:Php-mvc,代碼行數:5,代碼來源:books.php

示例9: __construct

 public function __construct($args)
 {
     parent::__construct($args);
 }
開發者ID:kostarev,項目名稱:test,代碼行數:4,代碼來源:login.php

示例10: __construct

 public function __construct($params)
 {
     parent::__construct($params);
 }
開發者ID:khoteevnd,項目名稱:mb,代碼行數:4,代碼來源:Controller_Author_class.php

示例11: array

 function __construct($args)
 {
     parent::__construct($args);
     $this->avatars_dir = 'data/avatars';
     $this->ava_sizes = array('original' => 0, 'small' => 50, 'norm' => 100, 'big' => 200);
 }
開發者ID:kostarev,項目名稱:test,代碼行數:6,代碼來源:avatar.php


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