function _initialize() { parent::_initialize(); $this->order_model = D("Server/Order"); $this->uid = sp_get_current_userid(); $this->serversell_model = D("Server/ServersSell"); }
function __construct() { parent::__construct(); $this->userid = sp_get_current_userid(); $this->user = $this->users_model->where(array("id" => $this->userid))->find(); $this->sign_num = $this->exchange->where(array("uid" => $this->userid, "memo" => "网站签到"))->count(); $this->assign('signNum', $this->sign_num); $this->sign_point = D('Config')->val("pc_sign"); $this->share_point = D('Config')->val('pc_share'); $this->assign('user', $this->user); $this->assign("servePromise", $this->_getAd("servePromise")); $this->assign("home_head", $this->_getAd("banner_user")); }
function _initialize() { parent::_initialize(); $this->users_model = D("Common/Users"); $this->resume_model = M("Resume"); $this->category_model = M("Category"); $this->recruit_model = M("Recruit"); $this->deliver_model = M("Deliver"); $this->certificate_model = M("Certificate"); $this->lookcertificate_model = M("Lookcertificate"); $this->compete_model = M("Compete"); $this->orderlist_model = M("Orderlist"); $this->charge_model = M("Charge"); $this->payrecord_model = M("Payrecord"); }
function _initialize() { parent::_initialize(); $this->users_model = D("Common/Member"); }
function _initialize() { parent::_initialize(); $this->comments_model = D("Common/Comments"); }
function _initialize() { parent::_initialize(); $this->model_exchange = D("Exchange"); }
public function _initialize() { parent::_initialize(); $this->users_model = D("Common/Users"); $this->term_relationships_model = D("Portal/TermRelationships"); }
function __construct() { parent::__construct(); $this->assign("home_head", $this->_getAd("banner_user")); }