Refactor the view class.

This commit is contained in:
Taylor Otwell
2011-08-08 10:49:15 -05:00
parent 4585f25092
commit edae391593

View File

@@ -115,7 +115,10 @@ class View {
$path = ($module == 'application') ? VIEW_PATH : MODULE_PATH.$module.'/views/';
if ($module != 'application') $view = substr($view, strpos($view, ':') + 2);
if ($module != 'application')
{
$view = substr($view, strpos($view, ':') + 2);
}
return array($module, $path, $view);
}