public static function defineTemplate($pasta, $file) { $filename = Config::get('view') . $pasta . DIRECTORY_SEPARATOR . $file . '.php'; if (file_exists($filename)) { ob_start(); include_once $filename; self::$conteudo = ob_get_contents(); ob_end_clean(); } $layout = Config::get('layout') . 'scripts' . DIRECTORY_SEPARATOR . 'layout.php'; require_once $layout; }