Zend Framework  3.0
Public Member Functions | List of all members
RenderToPlaceholder Class Reference

Renders a template and stores the rendered output as a placeholder variable for later use. More...

Public Member Functions

 __invoke ($script, $placeholder)
 Renders a template and stores the rendered output as a placeholder variable for later use.
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Additional Inherited Members

- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Renders a template and stores the rendered output as a placeholder variable for later use.

Member Function Documentation

__invoke (   $script,
  $placeholder 
)

Renders a template and stores the rendered output as a placeholder variable for later use.

Parameters
string | ModelInterface$scriptThe template script to render
string$placeholderThe placeholder variable name in which to store the rendered output
Returns
void