Skip to content

Commit

Permalink
Fix docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 18, 2014
1 parent 7e7cc75 commit b6a2712
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,13 @@ The sub-view can then be rendered from the parent view:
</body>
</html>

#### Checking if a view exists
#### Determining If A View Exists

Eventually you will need to check if a view exists in order to render it. To do it, simply use the `View::exists` method:
If you need to check if a view exists, use the `View::exists` method:

$view = 'emails.customer';

if (View::exists($view)) {
// render
if (View::exists('emails.customer'))
{
//
}

<a name="view-composers"></a>
Expand Down

0 comments on commit b6a2712

Please sign in to comment.