Wiki

Articles tagged with "save"X
Displaying 1-6 of 6 result(s).

Sort and save order of model-elements drag & drop

Created 10 months ago by Kostas Apazidis (KonApaz)Tutorials2 comments – viewed 3,981 times – ( +2 ) – version 1.1
Suppose you have Products,Categories and each product belongs in many categories

Save uploaded file with any filename characters

Created 10 months ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 3,238 times – ( +1 ) – version 1.1
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

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

Created 10 months ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 7,901 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 ?

Save and Display Date/Time Fields in different formats in Yii2

Created 10 months ago by Kartik VHow-tos10 comments – viewed 17,376 times – ( +36 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

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

Created 10 months ago by Kartik VTutorials0 comments – viewed 3,180 times – ( +37 / -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:

Handling tabular data loading and validation in Yii 2

Created 10 months ago by Kartik VTutorials3 comments – viewed 8,531 times – ( +40 / -5 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.