yii2-gii icon indicating copy to clipboard operation
yii2-gii copied to clipboard

Add the ability to set the variable`s default value with generateActionParams()

Open radiocity opened this issue 9 years ago • 1 comments

Now \yii\gii\Generator->generateActionParams() generates string like

echo $generator->generateActionParams(); 
// "$lorem, $ipsum"

Add the ability to set the variable`s default value. Something like

echo $generator->generateActionParams(['lorem'=>false, 'ipsum' => 10]); 
// "$lorem = false, $ipsum = 10"

radiocity avatar Dec 03 '15 11:12 radiocity

Can you point out the usage?

I just find it used when generate actionView

lichunqiang avatar Dec 13 '15 08:12 lichunqiang