本文整理汇总了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');
}
示例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");
}
示例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");
}
示例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');
}
示例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");
}
示例6: initialize
public function initialize()
{
parent::initialize();
}
示例7: initialize
public function initialize()
{
Phalcon\Tag::setTitle('Index');
parent::initialize();
}
示例8: initialize
/**
* Performs driver initialization
* @param \qub\System $system
*/
public function initialize(\qub\System $system)
{
parent::initialize($system);
$this->queue = new \SplQueue();
}
示例9: initialize
/**
* Performs driver initialization
* @param \qub\System $system
*/
public function initialize(\qub\System $system)
{
parent::initialize($system);
$this->collection = new \SplObjectStorage();
}
示例10: initialize
public function initialize()
{
parent::initialize();
$this->hasManyToMany('id', 'Models\\UsersGroups', 'group_id', 'user_id', 'Models\\Users', 'id', array('alias' => 'users'));
}
示例11: initialize
/**
* Performs driver initialization
* @param \qub\System $system
*/
public function initialize(\qub\System $system)
{
parent::initialize($system);
$this->stack = new \SplStack();
}
示例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'))));
}