Wiki articles tagged with "save"

Showing 1-6 of 6 items.

Sort and save order of model-elements drag & drop

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

Suppose you have Products,Categories and each product belongs in many categories

1 0
4 followers
Viewed: 20 780 times
Version: 1.1
Category: Tutorials
1 0
3 followers
Viewed: 21 158 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

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 ?

1 0
1 follower
Viewed: 41 571 times
Version: 1.1
Category: Tutorials

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

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Kartik V Kartik V.

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.

0 0
51 followers
Viewed: 180 814 times
Version: 2.0
Category: How-tos

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

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

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

2 3
41 followers
Viewed: 26 514 times
Version: 2.0
Category: Tutorials

Handling tabular data loading and validation in Yii 2

Created 11 years ago by Kartik V Kartik V, updated 9 years ago by Said Bakr Said Bakr.

The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.

3 2
51 followers
Viewed: 62 375 times
Version: 2.0
Category: Tutorials