Kohana_Twig::__toString PHP Method

__toString() public method

Magic method, returns the output of render(). If any exceptions are thrown, the exception output will be returned instead.
public __toString ( ) : string
return string
    public function __toString()
    {
        try {
            return $this->render();
        } catch (Exception $e) {
            // Display the exception message
            Kohana::exception_handler($e);
            return '';
        }
    }