src/View.php
public function getContent()
    {
        if ( $this->_render_completed )
        {
            return $this->_content;
        }

        foreach ( $this->_view_levels as $view_level )
        {
            if ( $view_level["is_disabled"] )
            {
                continue;
            }

            $this->_view_levels[$view_level["name"]]["is_disabled"] = true;

            if ( $view_level["cache_enabled"] != false )
            {
                $this->getCacheContent( $view_level );
                return;
            }

            include( $this->_views_dir . $view_level["file_name"] . ".phtml" );
            return;
        }
    }
public function getContent()
    {
        if ( $this->_render_completed )
        {
            return $this->_content;
        }

        foreach ( $this->_view_levels as $view_level )
        {
            if ( $view_level["is_disabled"] )
            {
                continue;
            }

            $this->_view_levels[$view_level["name"]]["is_disabled"] = true;

            if ( $view_level["cache_enabled"] != false )
            {
                $this->getCacheContent( $view_level );
                return;
            }

            include( $this->_views_dir . $view_level["file_name"] . ".phtml" );
            return;
        }
    }
public function getContent ( ) { if ( $ this -> _render_completed ) { return $ this -> _content ; } foreach ( $ this -> _view_levels as $ view_level ) { if ( $ view_level [ "is_disabled" ] ) { continue ; } $ this -> _view_levels [ $ view_level [ "name" ] ] [ "is_disabled" ] = true ; if ( $ view_level [ "cache_enabled" ] != false ) { $ this -> getCacheContent ( $ view_level ) ; return ; } include ( $ this -> _views_dir . $ view_level [ "file_name" ] . ".phtml" ) ; return ; } }
Includes the files attached to the view levels.
Disabled view levels do not get included.
MAIN_VIEW -> BEFORE_CONTROLLER_VIEW -> CONTROLLER_VIEW -> AFTER_CONTROLLER_VIEW -> ACTION_VIEW
If a view level has cache enabled, stop rendering
Includes the files attached to the view levels . Disabled view levels do not get included . MAIN_VIEW - > BEFORE_CONTROLLER_VIEW - > CONTROLLER_VIEW - > AFTER_CONTROLLER_VIEW - > ACTION_VIEW If a view level has cache enabled stop rendering