Wiki articles in category Tips tagged with "model"

Showing 1-3 of 3 items.

A universal model attribute for its synthetic representation

Created 2 years ago by Alexandre Rodichevski, updated 2 years ago by Alexandre Rodichevski.

It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

0 0
3 followers
Viewed: 7 454 times
Version: 2.0
Category: Tips

Create Form With DynamicModel

Created 4 years ago by Misbahul D Munir, updated 4 years ago by Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

2 0
7 followers
Viewed: 29 820 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

Model validation for field ranges using yii2-field-range extension

Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 18 885 times
Version: 2.0
Category: Tips