In yii2 we can create form without create FormModel. Here we go
In yii2 we can create form without create FormModel. Here we go
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
One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.
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.
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.
Ok, it is a little bit difficult to full understanding the unsafe validator.
This tutorial shows you how to safely remove records between relationships.
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.