RE: [PHP] MVC platform choice.
| From: | Ahmed Saad | Date: | Thu, 01 Dec 2005 23:39:17 +0000 |
| Subject: | RE: [PHP] MVC platform choice. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226752@lists.php.net to get a copy of this message | ||
Hi Greg,
On 12/1/05, Greg Donald <destiney@destiney.com> wrote:
> Do you still have to reassign the data in the view for use in the
> template after having already created it once in the action? That is
> quite the pain.
in View::execute() you can quickly import all request parameters or
attributes into your template...
for parameters, use View::importAttributes() (yes the name is correct)
for attributes use $this->setAttributes($request->getAttributes());
be sure to check out the latest SVN version for many bugfixes and enhancments
-ahmed