Refactor the view class.

This commit is contained in:
Taylor Otwell 2011-08-08 10:49:15 -05:00
parent 4585f25092
commit edae391593
1 changed files with 4 additions and 1 deletions

View File

@ -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);
} }