Refactor the view class.
This commit is contained in:
@@ -115,7 +115,10 @@ class 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user