public function handleError($code, $message, $file = '', $line = 0, $context = array())
    {
        if ($file == 'tmpl://com:base.template.stack' || $code == 1) {
            if ($file == 'tmpl://com:base.template.stack') {
                $file = $this->getPath();
            }

            if (ini_get('display_errors')) {
                echo '<strong>'.$code.'</strong>: '.$message.' in <strong>'.$file.'</strong> on line <strong>'.$line.'</strong>';
            }

            if (ini_get('log_errors')) {
                error_log(sprintf('PHP %s:  %s in %s on line %d', $code, $message, $file, $line));
            }

            return true;
        }

        return false;
    }