Wiki articles tagged with "model"

Showing 1-7 of 7 items.

Working with relational removals by yii2

Created 7 years ago by AndroideLP, updated 6 years ago by Jairus Martin.

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 35 226 times
Version: 2.0
Category: Tutorials

Optimize Scenarios for yii2

Created 7 years ago by AndroideLP, updated 4 years ago by AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 41 727 times
Version: 2.0
Category: Tutorials

A universal model attribute for its synthetic representation

Created 7 years ago by Alexandre Rodichevski, updated 7 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: 14 439 times
Version: 2.0
Category: Tips

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created 7 years ago by Wade Shuler, updated 7 years ago by Wade Shuler.

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 22 878 times
Version: 2.0
Category: How-tos

Create Form With DynamicModel

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

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

4 0
8 followers
Viewed: 47 001 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

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

Created 9 years ago by Kartik V, updated 9 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: 27 552 times
Version: 2.0
Category: Tips

How to store array/widget configuration to the database with config validation rules

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

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

2 3
41 followers
Viewed: 23 487 times
Version: 2.0
Category: Tutorials