Wiki

Articles tagged with "model", sorted by ratingX
Displaying 21-25 of 25 result(s).

Create Form With DynamicModel

Created about a year ago by Misbahul D MunirTips4 comments – viewed 9,376 times – ( +1 ) – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

"safe" and "unsafe" Model validators (massive assignments)

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 17,834 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Add model validator in Controller

Created about a year ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 12,847 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

Save or Update Multiple related model values in one Tabular input form

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 16,493 times – ( +1 / -7 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

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

Created 21 days ago by Wade ShulerHow-tos0 comments – viewed 1,389 times – version 2.0
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.