7.24. Opt_Output_Interface class
7.24.2. render()
7.24.1. getName()
« Previous
8. Appendix
Next »

7.24.2. render()

ConstructAbstract method
Visibilitypublic
Referencemixed render(Opt_View $view)
Argument list
$view - Opt_View
The view to render.
Returned valueThe returned value may depend on the output needs.

Executes the Opt_View::_parse() method in Opt_View class in order to execute the template. The most trivial implementation:

public function render(Opt_View $view)
{
    $view->_parse($this, true);
} // end render();

The second argument in _parse() indicates that the method should throw an exception, if the requested template does not exist. The library does not require the method to return any particular value, however the output system may return such a value in render().

7.24.2. render()
7.24. Opt_Output_Interface class
« Previous
7.24.1. getName()
Next »
8. Appendix