本文整理汇总了PHP中Admin\Controller\AdminController类的典型用法代码示例。如果您正苦于以下问题:PHP AdminController类的具体用法?PHP AdminController怎么用?PHP AdminController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AdminController类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initialize
public function _initialize()
{
parent::_initialize();
$this->IndustryModel = D('Industry');
// 初始化证书表模型
$this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
}
示例2: _initialize
public function _initialize()
{
parent::_initialize();
$this->CertificateModel = D('Certificate');
// 初始化证书表模型
$this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
}
示例3: D
function _initialize()
{
parent::_initialize();
$this->newsModel = D('News/News');
$this->newsDetailModel = D('News/NewsDetail');
$this->newsCategoryModel = D('News/NewsCategory');
}
示例4: D
function _initialize()
{
//将模型放入属性中
$this->issueModel = D('Issue/Issue');
//继承父类的构造函数
parent::_initialize();
}
示例5: _initialize
public function _initialize()
{
//$this->addCss('/theme/default/ckeditor/sample.css');
$this->addJs('/theme/default/ckeditor/sample.js');
$this->addJs('/theme/default/ckeditor/ckeditor.js');
parent::_initialize();
}
示例6: display
public function display($templateFile = '', $charset = '', $contentType = '', $content = '', $prefix = '')
{
//获取模版的名称
$template = dirname(__FILE__) . '/../View/default/Builder/' . $templateFile . '.html';
//显示页面
parent::display($template);
}
示例7: D
function _initialize()
{
$this->shopModel = D('Shop/Shop');
$this->shop_configModel = D('Shop/ShopConfig');
$this->shop_categoryModel = D('Shop/ShopCategory');
parent::_initialize();
}
示例8: __construct
public function __construct()
{
parent::__construct();
$orderModel = new \Loan\Model\OrderModel();
$this->_type = $orderModel->getType();
$this->_status = $orderModel->getStatus();
}
示例9: I
function _initialize()
{
$this->type = I('get.type');
if (empty($this->type)) {
}
parent::_initialize();
}
示例10: disable
/**
* 禁用
*/
public function disable()
{
if (is_administrator(I('uid', 0))) {
$this->error("禁止对超级管理员进行禁用操作!");
}
parent::disable("uid");
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->assign('menu', 'weixin');
$this->assign('mLeft', 'weixin_' . strtolower(ACTION_NAME));
$this->weixin = C('WEIXIN');
}
示例12: _initialize
public function _initialize()
{
parent::_initialize();
$this->AdminUserModel = D('AdminUser');
// 初始化管理员账户模型
$this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->assign('module', 4);
$this->appeal = D('Appeal');
$this->appeal_reply = D('Appeal_reply');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$orderModel = new \Loan\Model\OrderModel();
$this->_field_text_map['order_type'] = $this->_order_type = $orderModel->getType();
$this->_field_text_map['status'] = $this->_status = $orderModel->getStatus();
}
示例15: _initialize
public function _initialize()
{
parent::_initialize();
$this->SchoolJobModel = D('SchoolJob');
// 初始化证书表模型
$this->nowtime = date('Y-m-d H:i:s', NOW_TIME);
}