Issue Type: New Feature Created: 2012-03-21T22:02:37.000+0000 Last Updated: 2012-10-08T20:15:22.000+0000 Status: Closed Fix version(s): Reporter: vahid sohrabloo (vahid4134) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\View
Related issues: Attachments:
In my project I want to render two view model in one capture. like render N model in content capture. I dont found any way to render this. Sorry for my bad english
Posted by Adam Lundrigan (adamlundrigan) on 2012-03-23T21:56:26.000+0000
Can you provide an example? It doesn't have to work, and even pseudocode would help us to understand your question a bit better.
Also, take a look at this page from [~rob]'s ZF2TestApp: http://zf2test.akrabat.com/view/multipleViewModels If that is the type of functionality you are looking for, check out his source code for that page: * Controller: https://github.com/akrabat/ZF2TestApp/… * Main View Script: https://github.com/akrabat/ZF2TestApp/…
Posted by vahid sohrabloo (vahid4134) on 2012-03-24T07:03:36.000+0000
Thanks Adam Lundrigan
Sorry for bad description. please see this code $result = new ViewModel(); $result->setTemplate('view/another-action');
$comment1 = new ViewModel(); $comment1->setTemplate('view/child-comments'); $result->addChild($comment1, 'child_comments');
$comment2 = new ViewModel(); $comment2->setTemplate('view/child-comments'); $result->addChild($comment2, 'child_comments');
in this example $comment1( in child_comments capture ) replace with $comment2(in child_comments capture ). But some time want to append to view model to one capture/
Posted by vahid sohrabloo (vahid4134) on 2012-04-04T11:52:47.000+0000
Do you agree with this feature? I can add this feature. I can pull to github.
Posted by Michel (miesje) on 2012-06-06T23:08:59.000+0000
I would like to see this feature implemented too. I've been dealing with the same problem and haven't found a workaround for it.
Posted by Maks 3w (maks3w) on 2012-06-13T20:05:16.000+0000
[~vahid4134] Send the pull don't ask!!!
Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:22.000+0000
This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2467
Have you found an issue?
See the Overview section for more details.