public function render()
    {
        $viewPath = $this->getDirectory() . '/'. $this->getName() . '.' . $this->getExtension();
        if (!file_exists($viewPath)) {
            trigger_error('View file "' . $viewPath . '" doesn\'t exist.', E_USER_ERROR);
            return false;
        }
        if (Configuration::read('mvc.autoload_shared_var') && !empty($this->variableList)) {
            foreach ($this->variableList as $varName => $varValue) {
                ${$varName} = $varValue;
            }
        }
        ob_start();
        require($viewPath);
        echo PHP_EOL;
        return ob_get_clean();
    }