Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How Data Be Shared By Two Models?

$
0
0
Hello everyone, I have a problem about the data sharing between two models.
For example, I got a Content model and an Article model. After created a content record, the application will redirect user to Article create page, and I want to auto-display the content name attribute and content id that I have just created in the Article create form. However, I don't how to pass the name and id from Content model to Article model. Please help, thank you.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>