added some comments to the view class.

This commit is contained in:
Taylor Otwell
2011-09-22 00:42:44 -05:00
parent 5d67672d66
commit 7a20240395
4 changed files with 66 additions and 24 deletions

View File

@@ -56,6 +56,14 @@ class URI {
/**
* Get a given URI segment from the URI for the current request.
*
* <code>
* // Get the first URI segment for the request
* $first = URI::segment(1);
*
* // Return a default value if the URI segment doesn't exist
* $segment = URI::segment(3, 'Default');
* </code>
*
* @param int $segment
* @param mixed $default
* @return string