protected function internalRenderer($resourceType, $resourceContent, array $parameters, $compressOutput = true)
    {
        // If we have to diable the output compression, just unregister the output filter temporarly
        if ($compressOutput == false) {
            $this->unregisterFilter('output', array($this, "trimWhitespaces"));
        }

        // Assign the parserContext variables
        foreach ($this->parserContext as $var => $value) {
            $this->assign($var, $value);
        }

        $this->assign($parameters);

        $output = $this->fetch(sprintf("%s:%s", $resourceType, $resourceContent));

        if ($compressOutput == false) {
            $this->registerFilter('output', array($this, "trimWhitespaces"));
        }

        return $output;
    }
protected function internalRenderer($resourceType, $resourceContent, array $parameters, $compressOutput = true)
    {
        // If we have to diable the output compression, just unregister the output filter temporarly
        if ($compressOutput == false) {
            $this->unregisterFilter('output', array($this, "trimWhitespaces"));
        }

        // Assign the parserContext variables
        foreach ($this->parserContext as $var => $value) {
            $this->assign($var, $value);
        }

        $this->assign($parameters);

        $output = $this->fetch(sprintf("%s:%s", $resourceType, $resourceContent));

        if ($compressOutput == false) {
            $this->registerFilter('output', array($this, "trimWhitespaces"));
        }

        return $output;
    }
protected function internalRenderer ( $ resourceType , $ resourceContent , array $ parameters , $ compressOutput = true ) { // If we have to diable the output compression, just unregister the output filter temporarly if ( $ compressOutput == false ) { $ this -> unregisterFilter ( 'output' , array ( $ this , "trimWhitespaces" ) ) ; } // Assign the parserContext variables foreach ( $ this -> parserContext as $ var => $ value ) { $ this -> assign ( $ var , $ value ) ; } $ this -> assign ( $ parameters ) ; $ output = $ this -> fetch ( sprintf ( "%s:%s" , $ resourceType , $ resourceContent ) ) ; if ( $ compressOutput == false ) { $ this -> registerFilter ( 'output' , array ( $ this , "trimWhitespaces" ) ) ; } return $ output ; }
Return a rendered template, either from file or from a string

@param string $resourceType    either 'string' (rendering from a string) or 'file' (rendering a file)
@param string $resourceContent the resource content (a text, or a template file name)
@param array  $parameters      an associative array of names / value pairs
@param bool   $compressOutput  if true, te output is compressed using trimWhitespaces. If false, no compression occurs

@return string the rendered template text
@throws \Exception
@throws \SmartyException
Return a rendered template either from file or from a string