当前位置: 首页>>代码示例>>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;未经允许,请勿转载。