From 5d6258a7b40afd1739911c4f7aa350f456b9450f Mon Sep 17 00:00:00 2001 From: Jason Lewis Date: Fri, 15 Jun 2012 10:29:09 +0930 Subject: [PATCH] Can now check for existance of named views. Signed-off-by: Jason Lewis --- laravel/view.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/laravel/view.php b/laravel/view.php index f97b3dee..b4304889 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -118,6 +118,11 @@ class View implements ArrayAccess { */ 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);