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


PHP Base::initialize方法代碼示例

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


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

示例1: initialize

 public function initialize()
 {
     Phalcon\Tag::setTitle('係統管理');
     parent::initialize();
     $this->assets->addCss("pagecss/admin.min.css");
     $this->assets->collection('footer')->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("lib/dropzone.min.js");
     $this->view->setTemplateAfter('index-layout');
 }
開發者ID:sify21,項目名稱:Question,代碼行數:8,代碼來源:ImportController.php

示例2: initialize

 public function initialize()
 {
     Phalcon\Tag::setTitle('心理健康問卷調查');
     parent::initialize();
     $this->view->setTemplateAfter("index-layout");
     if ($this->usecdn) {
         $this->assets->addCss("http://questionnaire-buaa.qiniudn.com/css/survey2.min.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/daterangepicker-bs3.css");
         $this->assets->collection("header")->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addCss("http://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/moment.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/daterangepicker.js");
     } else {
         $this->assets->addCss("css/survey.css")->addCss("css/datepicker.css");
         $this->assets->collection("header")->addJs("lib/moment.js")->addJs("js/jquery.js")->addJs("lib/daterangepicker.js")->addJs("lib/jquery.cookie.js");
     }
     $this->assets->addCss("css/buttons.css");
 }
開發者ID:sify21,項目名稱:Question,代碼行數:14,代碼來源:StudentController.php

示例3: initialize

 public function initialize()
 {
     Phalcon\Tag::setTitle('係統管理');
     parent::initialize();
     if ($this->usecdn) {
         $this->assets->addCss("http://cdn.staticfile.org/jqgrid/4.6.0/css/ui.jqgrid.css")->addCss("http://cdn.staticfile.org/dropzone/3.10.2/css/dropzone.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/ace-bundle.min.css");
         $this->assets->collection('footer')->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("http://cdn.staticfile.org/twitter-bootstrap/3.3.0/js/bootstrap.min.js")->addJs("http://cdn.staticfile.org/dropzone/3.10.2/dropzone.min.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/jquery.jqGrid.src.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/i18n/grid.locale-cn.js");
     } else {
         $this->assets->addCss("pagecss/admin.min.css");
         $this->assets->collection('footer')->addJs("js/jquery.js")->addJs("lib/dropzone.min.js")->addJs("jqGrid/js/jquery.jqGrid.min.js")->addJs("jqGrid/js/i18n/grid.locale-cn.js");
     }
     $this->assets->collection('header-ie9-css')->addCss("css/ace-part2.min.css")->addCss("css/ace-ie.min.css");
     $this->assets->collection('header-ie9')->addJs("lib/html5shiv.js")->addJs("lib/ace-extra.min.js");
 }
開發者ID:sify21,項目名稱:Question,代碼行數:14,代碼來源:AdminController.php

示例4: initialize

 public function initialize()
 {
     Phalcon\Tag::setTitle('歡迎登錄本係統');
     parent::initialize();
     if ($this->usecdn) {
         $this->assets->addCss("http://questionnaire-buaa.qiniudn.com/css/ace-bundle.min.css");
         $this->assets->collection('header')->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("http://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js");
     } else {
         $this->assets->addCss("pagecss/ace-bundle.min.css");
         $this->assets->collection('header')->addJs("js/jquery.js")->addJs("lib/jquery.qrcode.min.js");
     }
     $this->assets->collection('header-ie9-css')->addCss("css/ace-part2.min.css")->addCss("css/ace-ie.min.css");
     $this->assets->collection('header-ie9')->addJs("lib/html5shiv.js");
     $this->view->setTemplateAfter('backend-layout');
 }
開發者ID:sify21,項目名稱:Question,代碼行數:15,代碼來源:StuloginController.php

示例5: initialize

 public function initialize()
 {
     Phalcon\Tag::setTitle('問卷調查管理');
     parent::initialize();
     if ($this->usecdn) {
         $this->assets->addCss("http://cdn.staticfile.org/dropzone/3.10.2/css/dropzone.css")->addCss("http://cdn.staticfile.org/jqgrid/4.6.0/css/ui.jqgrid.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/ace-bundle.min.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/backend.css")->addCss("http://questionnaire-buaa.qiniudn.com/css/daterangepicker-bs3.css");
         $this->assets->collection("header")->addJs("http://cdn.staticfile.org/jquery/1.9.1/jquery.min.js")->addJs("http://cdn.staticfile.org/twitter-bootstrap/3.3.0/js/bootstrap.min.js");
         $this->assets->collection('footer')->addJs("http://questionnaire-buaa.qiniudn.com/js/moment.js")->addJs("http://cdn.staticfile.org/dropzone/3.10.2/dropzone.min.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/daterangepicker.js")->addJs("http://questionnaire-buaa.qiniudn.com/js/backend2.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/jquery.jqGrid.src.js")->addJs("http://cdn.staticfile.org/jqgrid/4.6.0/js/i18n/grid.locale-cn.js");
     } else {
         // 本地壓縮版
         $this->assets->addCss("pagecss/index.min.css");
         $this->assets->collection("header")->addJs("js/jquery.js")->addJs("bootstrap/js/bootstrap.min.js");
         $this->assets->collection('footer')->addJs("lib/moment.js")->addJs("lib/dropzone.min.js")->addJs("lib/daterangepicker.js")->addJs("js/backend.js");
     }
     $this->assets->collection('footer')->addJs("js/ZeroClipboard.js");
     $this->assets->collection('header-ie9-css')->addCss("css/ace-part2.min.css")->addCss("css/ace-ie.min.css");
     $this->assets->collection('header-ie9')->addJs("lib/html5shiv.js")->addJs("lib/ace-extra.min.js");
     $this->view->setTemplateAfter('index-layout');
     date_default_timezone_set("PRC");
 }
開發者ID:sify21,項目名稱:Question,代碼行數:20,代碼來源:IndexController.php

示例6: initialize

 public function initialize()
 {
     parent::initialize();
 }
開發者ID:sunxfancy,項目名稱:Questionnaire,代碼行數:4,代碼來源:PmController.php

示例7: initialize

 public function initialize()
 {
     Phalcon\Tag::setTitle('Index');
     parent::initialize();
 }
開發者ID:sify21,項目名稱:PhalconProject,代碼行數:5,代碼來源:IndexController.php

示例8: initialize

 /**
  * Performs driver initialization
  * @param \qub\System $system
  */
 public function initialize(\qub\System $system)
 {
     parent::initialize($system);
     $this->queue = new \SplQueue();
 }
開發者ID:jgswift,項目名稱:qub,代碼行數:9,代碼來源:Queued.php

示例9: initialize

 /**
  * Performs driver initialization
  * @param \qub\System $system
  */
 public function initialize(\qub\System $system)
 {
     parent::initialize($system);
     $this->collection = new \SplObjectStorage();
 }
開發者ID:jgswift,項目名稱:qub,代碼行數:9,代碼來源:Delayed.php

示例10: initialize

 public function initialize()
 {
     parent::initialize();
     $this->hasManyToMany('id', 'Models\\UsersGroups', 'group_id', 'user_id', 'Models\\Users', 'id', array('alias' => 'users'));
 }
開發者ID:eskater,項目名稱:phalcon.project,代碼行數:5,代碼來源:Groups.php

示例11: initialize

 /**
  * Performs driver initialization
  * @param \qub\System $system
  */
 public function initialize(\qub\System $system)
 {
     parent::initialize($system);
     $this->stack = new \SplStack();
 }
開發者ID:jgswift,項目名稱:qub,代碼行數:9,代碼來源:Stacked.php

示例12: initialize

 public function initialize()
 {
     parent::initialize();
     $this->addBehavior(new \Phalcon\Mvc\Model\Behavior\Timestampable(array('beforeSave' => array('field' => 'modified', 'format' => 'Y-m-d H:i:s'), 'beforeCreate' => array('field' => 'created', 'format' => 'Y-m-d H:i:s'))));
 }
開發者ID:eskater,項目名稱:phalcon.project,代碼行數:5,代碼來源:BaseDate.php


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