本文整理汇总了PHP中Admin\Controller\AdminController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::__construct方法的具体用法?PHP AdminController::__construct怎么用?PHP AdminController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin\Controller\AdminController
的用法示例。
在下文中一共展示了AdminController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __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();
}
示例2: __construct
public function __construct()
{
parent::__construct();
$model = new \Loan\Model\CompanyModel();
$this->_type = $model->getType();
$this->_field_text_map = ['type' => $this->_type, 'status' => $this->_status];
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->assign('menu', 'weixin');
$this->assign('mLeft', 'weixin_' . strtolower(ACTION_NAME));
$this->weixin = C('WEIXIN');
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->assign('module', 4);
$this->appeal = D('Appeal');
$this->appeal_reply = D('Appeal_reply');
}
示例5: __construct
public function __construct()
{
parent::__construct();
$orderModel = new \Loan\Model\OrderModel();
$this->_type = $orderModel->getType();
$this->_status = $orderModel->getStatus();
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->orderForm = D('OrderForm');
$this->orderGoods = D('OrderGoods');
$this->customer = D('Customer');
$this->relation = new OrderRelationModel();
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->goods = D('Goods');
$this->myUpload = $this->upload;
$path = './Picture/Goods/';
$this->myUpload->savePath = $path;
$this->urlArray = array('urlonSheleves' => U('onShelevesManager'), 'urlunderSheleves' => U('underShelevesManager'), 'urladd' => U('add'));
}
示例8: __construct
public function __construct()
{
parent::__construct();
$config = D("Config");
$configArr = $config->fetConfig();
$this->beginDate = $configArr[0]['value'];
$this->endDate = $configArr[1]['value'];
$this->dateArr = $this->_getTimes();
}
示例9: __construct
public function __construct()
{
$model_id = I('model_id');
$this->m_name = $model_id;
if (is_numeric($model_id)) {
$this->m_info = get_model($model_id);
} else {
$this->m_info = M('Model')->where("`table`='{$model_id}'")->find();
}
parent::__construct();
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->_type_config[1] = 'PC版-首页-精选商品';
foreach ($this->_category() as $id => $name) {
$this->_type_config['3_' . $id] = 'PC版-首页-分类-' . $name;
}
$this->_type_config[2] = '手机版-首页-精选商品';
foreach ($this->_category() as $id => $name) {
$this->_type_config['4_' . $id] = '手机版-首页-分类-' . $name;
}
$this->assign('_type', $this->_type_config);
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->assign('menu', 'user');
$this->assign('mLeft', 'user_' . strtolower(ACTION_NAME));
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->AuthRole = D('AuthRole');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->attr = D('Attr');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->goodsModel = D('Goods');
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->_field_text_map = ['status' => [1 => '正常', 0 => '禁用'], 'level' => ['1' => '校园主任', '2' => '学区经理', '3' => '校园经理', '4' => '校园专员']];
}