Can we call a model in view?
Answer / Akshay Srivastava
In Zend Framework, models and views are separate components. You cannot directly call a model inside a view.nHowever, you can pass data from the controller to the view that is retrieved from the model. This data can then be used in your view templates.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is the difference between zend_auth and zend_acl?
How to access route, post, get etc. Parameters in zend framework 2?
What are decorators in the zend framework?
Explain what is the procedure to see that the optional file is detected?
What is autoloader?
What do you know about zend layout?
What is the purpose of autoloader in zend framework?
What are the default methods provided by decorators?
What is the difference between redirect and forward in zend framework?
What are the advantages of zend framework 2?
Tell me what is the function of model in mvc architecture?
Explain the difference between zend 2 & zend 3?