src/View.php
public function recursiveRender()
    {
        foreach ($this->elements as $view) {
            if (!$view instanceof self) {
                continue;
            }

            $this->template->appendHTML($view->region, $view->getHTML());

            if ($view->_js_actions) {
                $this->_js_actions = array_merge_recursive($this->_js_actions, $view->_js_actions);
            }
        }

        if (isset($this->content) && $this->content !== false) {
            $this->template->append('Content', $this->content);
        }
    }
public function recursiveRender()
    {
        foreach ($this->elements as $view) {
            if (!$view instanceof self) {
                continue;
            }

            $this->template->appendHTML($view->region, $view->getHTML());

            if ($view->_js_actions) {
                $this->_js_actions = array_merge_recursive($this->_js_actions, $view->_js_actions);
            }
        }

        if (isset($this->content) && $this->content !== false) {
            $this->template->append('Content', $this->content);
        }
    }
public function recursiveRender ( ) { foreach ( $ this -> elements as $ view ) { if ( ! $ view instanceof self ) { continue ; } $ this -> template -> appendHTML ( $ view -> region , $ view -> getHTML ( ) ) ; if ( $ view -> _js_actions ) { $ this -> _js_actions = array_merge_recursive ( $ this -> _js_actions , $ view -> _js_actions ) ; } } if ( isset ( $ this -> content ) && $ this -> content !== false ) { $ this -> template -> append ( 'Content' , $ this -> content ) ; } }
Recursively render all children, placing their
output in our template.
Recursively render all children placing their output in our template .