Wiki

Articles tagged with "array"X
Displaying 1-2 of 2 result(s).

Relational data fields display and edit with the yii2-detail-view extension

Created 6 months ago by Kartik VTutorials0 comments – viewed 3,937 times – ( +29 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

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

Created 6 months ago by Kartik VTutorials0 comments – viewed 2,312 times – ( +29 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db: