-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find other solution for editable lists or disable it #170
Comments
I wrote function forListbox() in extended module, because in follow part need set correct column names: ->select('`<?=$tableSchema->primaryKey[0]?>` `id`, `name`')
//->where(['hidded' => 0])
->orderBy('`name`'); |
If add to generator additional parameter "LabelField", forListbox() can move to base model and add method itemLabel(). Method forListbox() can use also in forms instead relation listboxs. |
I'd like to limit the number of parameters of the generator, if possible I'd even reduce them. You can easily add functions to generated classes with traits, work for models and controllers now. |
Limiting number of parameters no so actual, if use SaveForm. Better way for listbox i see generating additional model - static model. |
@uldisn I needed to remove this from the model-extended template.
The template file should not contain any logic.
You can add this via baseModelTraits now.
Related #164
The text was updated successfully, but these errors were encountered: