Can now check for existance of named views.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
This commit is contained in:
Jason Lewis 2012-06-15 10:29:09 +09:30
parent b27b132128
commit 5d6258a7b4
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ public function __construct($view, $data = array())
*/
public static function exists($view, $return_path = false)
{
if(starts_with($view, 'name: '))
{
$view = static::$names[substr($view, 6)];
}
list($bundle, $view) = Bundle::parse($view);
$view = str_replace('.', '/', $view);