Well you can pass a variable from the Controller to the View:
In the Controller:
$this->view->foobar = "this is a string";
In the corresponding View:
<h1><?= $this->foobar ?></h1>
will get you:
<h1>this is a string</h1>
hi everybody
actually i am new to zend framework. I know that i can return a value of a variable from a form to the controller. Can I also return a value from the controller to any form or any model? If this is possible then please tell me that how can we do it.
Thanks in advance.
Well you can pass a variable from the Controller to the View:
In the Controller:
$this->view->foobar = "this is a string";
In the corresponding View:
<h1><?= $this->foobar ?></h1>
will get you:
<h1>this is a string</h1>