Commit 4f3dbf2e authored by Taylor Otwell's avatar Taylor Otwell

document the view::exists method.

parent ae2dc6a7
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
- [Added `unless` structure to Blade template engine](/docs/views/templating#blade-unless). - [Added `unless` structure to Blade template engine](/docs/views/templating#blade-unless).
- [Added Blade comments](/docs/views/templating#blade-comments). - [Added Blade comments](/docs/views/templating#blade-comments).
- [Added simpler environment management](/docs/install#environments). - [Added simpler environment management](/docs/install#environments).
- [Added `View::exists` method.
- Use [Memcached](http://php.net/manual/en/book.memcached.php) API instead of older [Memcache](http://php.net/manual/en/book.memcache.php) API. - Use [Memcached](http://php.net/manual/en/book.memcached.php) API instead of older [Memcache](http://php.net/manual/en/book.memcache.php) API.
- Added support for bundles outside of the bundle directory. - Added support for bundles outside of the bundle directory.
- Added support for DateTime database query bindings. - Added support for DateTime database query bindings.
......
...@@ -39,6 +39,10 @@ All views are stored within the **application/views** directory and use the PHP ...@@ -39,6 +39,10 @@ All views are stored within the **application/views** directory and use the PHP
return View::make('home.index'); return View::make('home.index');
}); });
#### Determining if a view exists:
$exists = View::exists('home.index');
Sometimes you will need a little more control over the response sent to the browser. For example, you may need to set a custom header on the response, or change the HTTP status code. Here's how: Sometimes you will need a little more control over the response sent to the browser. For example, you may need to set a custom header on the response, or change the HTTP status code. Here's how:
#### Returning a custom response: #### Returning a custom response:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment