本文整理匯總了PHP中Control::Control方法的典型用法代碼示例。如果您正苦於以下問題:PHP Control::Control方法的具體用法?PHP Control::Control怎麽用?PHP Control::Control使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Control
的用法示例。
在下文中一共展示了Control::Control方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
function __construct()
{
parent::Control();
$this->load_model("user");
$this->load_model("usergroup");
$this->load_model("user_model", true);
}
示例2:
function __construct()
{
parent::Control();
$this->load_model("cart");
$this->load_model("msg");
$this->load_model("user");
}
示例3:
function __construct()
{
parent::Control();
$this->load_model("cate");
//讀取模塊列表
$this->load_model("list");
//讀取產品下的列表
}
示例4:
function __construct()
{
parent::Control();
$this->load_model("cate");
$this->load_model("module");
$this->load_lib("html");
//加載生成靜態頁信息(通過HTML獲取)
}
示例5:
function __construct()
{
parent::Control();
$this->load_model("module");
//讀取模塊列表
$this->load_model("phpok");
//加載核心參數
include_once LIBS . "phpok.sys.php";
}
示例6:
function __construct()
{
parent::Control();
$this->load_model("list");
$this->load_model("module");
$this->load_model("cate");
$this->load_lib("phpok_input");
$this->load_model("currency_model", true);
}
示例7:
function __construct()
{
parent::Control();
$this->load_model("upfile");
//讀取附件操作類
$this->load_model("upfile_model", true);
//讀取附件操作類
$this->load_lib("upload");
$this->upload_lib->setting();
//初始化
}
示例8:
function __construct()
{
parent::Control();
$this->load_model("module");
//讀取模塊列表
$this->load_model("cate");
//讀取模塊列表
$this->load_model("list");
//讀取產品下的列表
$this->load_lib("html");
//加載生成靜態頁信息(通過HTML獲取)
$this->load_model("lang");
}
示例9:
function __construct()
{
parent::Control();
$this->load_model("upfile");
//讀取附件操作類
$this->load_lib("upload");
$this->upload_lib->setting();
//初始化
$this->type_video = $this->upload_lib->type_video;
$this->type_img = $this->upload_lib->type_img;
$this->type_file = $this->upload_lib->type_file;
$this->file_uptype = $this->upload_lib->file_uptype;
$this->file_save_type = $this->upload_lib->file_save_type;
$this->tpl->assign("type_video", $this->type_video);
$this->tpl->assign("type_img", $this->type_img);
$this->tpl->assign("type_file", $this->type_file);
$this->tpl->assign("file_uptype", $this->file_uptype);
}
示例10:
function __construct()
{
parent::Control();
$this->load_model("upfile");
//讀取附件操作類
if (file_exists(ROOT_DATA . "attachment.php")) {
include ROOT_DATA . "attachment.php";
if ($_sys["picture_type"]) {
$this->type_img = sys_id_list($_sys["picture_type"]);
}
if ($_sys["video_type"]) {
$this->type_video = sys_id_list($_sys["video_type"]);
}
if ($_sys["file_type"]) {
$this->type_file = sys_id_list($_sys["file_type"]);
}
$this->file_uptype = $_sys["file_uptype"];
}
$this->tpl->assign("type_video", $this->type_video);
$this->tpl->assign("type_img", $this->type_img);
$this->tpl->assign("type_file", $this->type_file);
$this->tpl->assign("file_uptype", $this->file_uptype);
}
示例11:
function __construct()
{
parent::Control();
$this->load_model("subscribers");
$this->load_model("subscribers_model", true);
}
示例12:
function __construct()
{
parent::Control();
$this->load_model("hotlink");
}
示例13:
function __construct()
{
parent::Control();
}
示例14: getConf
function __construct()
{
parent::Control();
$this->_conf = getConf('wechat');
$this->_S = new Server($this->_conf['AppId'], $this->_conf['Token'], $this->_conf['EncodingAESKey']);
}
示例15: getConf
function __construct()
{
parent::Control();
$this->_conf = getConf('wechat');
$this->_M = new Menu($this->_conf['AppID'], $this->_conf['AppSecret']);
}