![]() |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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> |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Designed by: Miner Skinz |
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.1.0 |
![]() |