①
public function __construct($id, $module, $config = [])
{
parent::__construct($id, $module, $config = []);
##########(要初始化的其他內容)#######################
}
②
public function init()
{
##########(要初始化的其他內容)#######################
}
①
public function __construct($id, $module, $config = [])
{
parent::__construct($id, $module, $config = []);
##########(要初始化的其他內容)#######################
}
②
public function init()
{
##########(要初始化的其他內容)#######################
}
直接php composer update更新就行 程序員工具:https://www.toolnb.com/
模型層: //場景 const SCENARIO_CREATE = 'create'; public function rules(){ return [ [['username','m