Can we call a model in view?



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

Post New Answer

More Zend Interview Questions

How to write a program that performs the calculations using the sql function?

1 Answers  


Tell me what is the function of model in mvc architecture?

1 Answers  


Explain what lucene is in the zend framework?

1 Answers  


Why does the zend framework project have a cla at all?

1 Answers  


How to disable zend layout from controller for ajax call only?

1 Answers  


What are plugins in the zend framework?

1 Answers  


How do you set module name, controller name, and action name in zend framework?

1 Answers  


Tell me what are the basic operations performed by the decorator?

1 Answers  


Can we call a model in view?

1 Answers  


How to write a program to show the function of action helper?

1 Answers  


What do two colons mean in php?

1 Answers  


Is zf a component library or a framework?

1 Answers  


Categories