Coder Social home page Coder Social logo

Comments (7)

zfbot avatar zfbot commented on June 1, 2024

(Originally posted by: adamlundrigan on 03/23/12)

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|https://github.com/akrabat/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:

from zendframework.

zfbot avatar zfbot commented on June 1, 2024

(Originally posted by: vahid sohrabloo on 03/24/12)

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/

from zendframework.

zfbot avatar zfbot commented on June 1, 2024

(Originally posted by: vahid sohrabloo on 04/04/12)

Do you agree with this feature?
I can add this feature. I can pull to github.

from zendframework.

zfbot avatar zfbot commented on June 1, 2024

(Originally posted by: Michel on 06/06/12)

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.

from zendframework.

zfbot avatar zfbot commented on June 1, 2024

(Originally posted by: maks3w on 06/13/12)

[~vahid4134] Send the pull don't ask!!!

from zendframework.

zfbot avatar zfbot commented on June 1, 2024

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF2-233

Known GitHub users mentioned in the original message or comment:
@weierophinney, @adamlundrigan, @Maks3w

from zendframework.

iquabius avatar iquabius commented on June 1, 2024

This was fixed with this PR.

from zendframework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.