zend-frameworkzend-framework3zend-view

what is the difference of partial and addChild?


Both are easy to use, both give the same output. So what is the difference? Are there any advantages to use one or the other? Is there any advantage in performance, security or what ever?

Which one would I use better if I want to manipulate view during runtime?


Solution

  • If we talk on zend-view, both using render's view method then calls rendrChild method recursively. So we can say there's not performance difference.

    Here's the zend-view's render method and here partial helper using it