refactor(view): remove redundant template path generation
- Remove unnecessary code that generates a template path based on the request pathinfo - Simplify the render function by removing the conditional block that sets the template path
This commit is contained in:
@@ -133,9 +133,6 @@ class AdminController extends BaseController
|
||||
{
|
||||
if ($layout) View::instance()->engine()->layout('/layout/default');
|
||||
View::assign($vars);
|
||||
if (empty($template)) {
|
||||
$template = strtolower(str_replace('.', '/', $this->request->pathinfo()));
|
||||
}
|
||||
return View::fetch($template);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user