Prado\Web\UI\WebControls\TMultiView::render PHP Method

render() public method

Renders the currently active view.
public render ( $writer )
    public function render($writer)
    {
        if (($view = $this->getActiveView()) !== null) {
            $view->renderControl($writer);
        }
    }

Usage Example

Beispiel #1
0
 /**
  * Renders the TActiveMultiView by writing a span tag with the container id obtained from {@link getContainerID()}
  * which will be called by the replacement method of the client script to update it's content.
  * @param $writer THtmlWriter writer for the rendering purpose
  */
 protected function renderMultiView($writer)
 {
     $writer->addAttribute('id', $this->getContainerID());
     $writer->renderBeginTag('span');
     parent::render($writer);
     $writer->renderEndTag();
 }