Getting Data for Multiple Models

Больше
3 мес. 2 дн. назад #6010 от admin
admin создал тему: Getting Data for Multiple Models
In the following, we will show how you can create...

Getting Data for Multiple Models

When dealing with some complex data, it is possible that you may need to use multiple different models to collect the user input. For example, assuming the user login information is stored in the user table while the user profile information is stored in the profile table, you may want to collect the input data about a user through a User model and a Profile model. With the Yii model and form support, you can solve this problem in a way that is not much different from handling a single model.

Подробнее...