public static function create($file) { $control = new self(); $template = $control->getTemplate(); $template->control = NULL; $template->setFile($file); $template->basePath = self::getBasePath(); return $template; }