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

Best Way For Passing Variables Through Many Pages?

$
0
0
I have 3 models : User, Skill, Job with relationship : User---> Skill ---> Job. So if user create or update the User, the detail of user must be store somewhere or pass to Skill page. In Skill, user input data for the skill that belong to selected User from previous page then store or pass User detail and Skill detail to Job page. Same with Job page. It means user in the last step could review their input before submit it.
From my knowledge, there are some ways like that to pass multi variables:
- Use hidden field
- Pass directly with URL address
- Store temporary in XML file
- Use session
- Create input table to store temporary data
Just want to ask which way is the best in term of performance and reliable, especially when there are more than 3 models?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



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