本文整理匯總了PHP中think\Model::_initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP Model::_initialize方法的具體用法?PHP Model::_initialize怎麽用?PHP Model::_initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類think\Model
的用法示例。
在下文中一共展示了Model::_initialize方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _initialize
protected function _initialize()
{
parent::_initialize();
//獲取到貨幣配置
$this->mField = 'score' . modC('CURRENCY_TYPE', '4', 'Store');
}
示例2: _initialize
public function _initialize()
{
parent::_initialize();
$this->mod = D($this->trueTableName);
}
示例3: _initialize
public function _initialize()
{
parent::_initialize();
$this->pkg = modC('EXPRESSION', 'miniblog', 'EXPRESSION');
define('ROOT_PATH', str_replace('/Application/Core/Model/ExpressionModel.class.php', '', str_replace('\\', '/', __FILE__)));
}
示例4: _initialize
protected function _initialize()
{
parent::_initialize();
$this->typeModel = D('ucenter_score_type');
}
示例5: _initialize
protected function _initialize()
{
parent::_initialize();
$this->appModel = M('sso_app');
}
示例6: _initialize
public function _initialize()
{
parent::_initialize();
$this->scoreModel = C('scorekey')['scorekey'];
}