public function loadPartial($name, array $vars = array())
    {
        $partialTemplateFile = $this->getPartialBag()->getPartialFile($name);

        if (is_file($partialTemplateFile)) {
            extract(array_replace_recursive($vars, $this->variables));
            include($partialTemplateFile);
        } else {
            return false;
        }
    }
public function loadPartial($name, array $vars = array())
    {
        $partialTemplateFile = $this->getPartialBag()->getPartialFile($name);

        if (is_file($partialTemplateFile)) {
            extract(array_replace_recursive($vars, $this->variables));
            include($partialTemplateFile);
        } else {
            return false;
        }
    }
public function loadPartial ( $ name , array $ vars = array ( ) ) { $ partialTemplateFile = $ this -> getPartialBag ( ) -> getPartialFile ( $ name ) ; if ( is_file ( $ partialTemplateFile ) ) { extract ( array_replace_recursive ( $ vars , $ this -> variables ) ) ; include ( $ partialTemplateFile ) ; } else { return false ; } }
Loads partial template

@param string $name
@param array $vars Additional variables if needed
@return void
Loads partial template