added better asset documentation.

This commit is contained in:
Taylor Otwell 2011-09-06 23:42:26 -05:00
parent d252677f34
commit 03654fc5a1
1 changed files with 8 additions and 0 deletions

View File

@ -125,6 +125,14 @@ public function __construct($name, HTML $html)
* only link to the registered asset after its dependencies have been linked. * only link to the registered asset after its dependencies have been linked.
* For example, you may wish to make jQuery UI dependent on jQuery. * For example, you may wish to make jQuery UI dependent on jQuery.
* *
* <code>
* // Add an asset to the container
* Asset::container()->add('jquery', 'js/jquery.js');
*
* // Add an asset that has dependencies
* Asset::container()->add('jquery', 'js/jquery.js', array('jquery-ui'));
* </code>
*
* @param string $name * @param string $name
* @param string $source * @param string $source
* @param array $dependencies * @param array $dependencies