Refactor the view class.
This commit is contained in:
parent
4585f25092
commit
edae391593
|
@ -115,7 +115,10 @@ private static function parse($view)
|
||||||
|
|
||||||
$path = ($module == 'application') ? VIEW_PATH : MODULE_PATH.$module.'/views/';
|
$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);
|
return array($module, $path, $view);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue