本文整理汇总了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']);
}