protected function getFileContent($path, $vars = array()) {

        //If there is vars to assign.
        if (is_array($vars)) {
            foreach ($vars as $key => $value) {
                /* @var $value BasicViewInterface */
                //If is a view, get the content of the view.
                if (is_object($value) && is_a($value, '\Mmf\View\BasicViewInterface')) {
                    $$key = $value->getContentView();
                } else {
                    $$key = $value;
                }
            }
        }
        ob_start();
        /** @noinspection PhpIncludeInspection */
        include($path);
        $output = ob_get_clean();
        return $output;
    }
protected function getFileContent($path, $vars = array()) {

        //If there is vars to assign.
        if (is_array($vars)) {
            foreach ($vars as $key => $value) {
                /* @var $value BasicViewInterface */
                //If is a view, get the content of the view.
                if (is_object($value) && is_a($value, '\Mmf\View\BasicViewInterface')) {
                    $$key = $value->getContentView();
                } else {
                    $$key = $value;
                }
            }
        }
        ob_start();
        /** @noinspection PhpIncludeInspection */
        include($path);
        $output = ob_get_clean();
        return $output;
    }
protected function getFileContent ( $ path , $ vars = array ( ) ) { //If there is vars to assign. if ( is_array ( $ vars ) ) { foreach ( $ vars as $ key => $ value ) { /* @var $value BasicViewInterface */ //If is a view, get the content of the view. if ( is_object ( $ value ) && is_a ( $ value , '\Mmf\View\BasicViewInterface' ) ) { $ $ key = $ value -> getContentView ( ) ; } else { $ $ key = $ value ; } } } ob_start ( ) ; /** @noinspection PhpIncludeInspection */ include ( $ path ) ; $ output = ob_get_clean ( ) ; return $ output ; }
Get the content of the view with the template vars replace it.

@param string $path
@param array  $vars

@return string
Get the content of the view with the template vars replace it .