本文整理匯總了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'))));
}