I have done some projects on MVC. I have a generic doubt.
Can view create objects of model class in MVC pattern? For example, lets say we are designing MVC for taxi management system. We have classes for cab and passenger. View will be taking passenger and cab details from user.
can we instantiate cab and passenger(model class) in view for storing details?
If we cant instantiate then where should we store details after taking from user?
How will it pass to controller?
I am new to MVC and any help will be greatly appreciated. I have googled it many times but have not got the satisfactory answer.