tp5:
controller中:
$beforeActionList = [
"需要前置的方法名称"=>["only"=>"array|调用前置方法的名称"]
]
$beforeActionList = [
"test1"=>["only"=>"test2]
]
会在调用test2()的时候调用test1()
tp5:
controller中:
$beforeActionList = [
"需要前置的方法名称"=>["only"=>"array|调用前置方法的名称"]
]
$beforeActionList = [
"test1"=>["only"=>"test2]
]
会在调用test2()的时候调用test1()