Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
26dcc276
Commit
26dcc276
authored
Aug 09, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spacing on Asset class documentation.
parent
0e399416
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
system/asset.php
+15
-15
No files found.
system/asset.php
View file @
26dcc276
...
...
@@ -21,14 +21,14 @@ class Asset {
* expressive code and a clean API.
*
* <code>
*
// Get the default asset container
*
$container = Asset::container();
*
// Get the default asset container
*
$container = Asset::container();
*
*
// Get the "footer" asset contanier
*
$container = Asset::container('footer');
*
// Get the "footer" asset contanier
*
$container = Asset::container('footer');
*
*
// Add an asset to the "footer" container
*
Asset::container('footer')->add('jquery', 'js/jquery.js');
*
// Add an asset to the "footer" container
*
Asset::container('footer')->add('jquery', 'js/jquery.js');
* </code>
*
* @param string $container
...
...
@@ -49,8 +49,8 @@ class Asset {
* This allows a convenient API for working with the default container.
*
* <code>
*
// Add jQuery to the default container
*
Asset::script('jquery', 'js/jquery.js');
*
// Add jQuery to the default container
*
Asset::script('jquery', 'js/jquery.js');
* </code>
*
*/
...
...
@@ -96,8 +96,8 @@ class Asset_Container {
* extension, you may use the style or script methods to register assets.
*
* <code>
*
// Register a jQuery asset
*
Asset::add('jquery', 'js/jquery.js');
*
// Register a jQuery asset
*
Asset::add('jquery', 'js/jquery.js');
* </code>
*
* You may also specify asset dependencies. This will instruct the class to
...
...
@@ -105,11 +105,11 @@ class Asset_Container {
* For example, you may wish to make jQuery UI dependent on jQuery.
*
* <code>
*
// Register jQuery UI as dependent on jQuery
*
Asset::add('jquery-ui', 'js/jquery-ui.js', 'jquery');
*
// Register jQuery UI as dependent on jQuery
*
Asset::add('jquery-ui', 'js/jquery-ui.js', 'jquery');
*
*
// Register jQuery UI with multiple dependencies
*
Asset::add('jquery-ui', 'js/jquery-ui.js', array('jquery', 'fader'));
*
// Register jQuery UI with multiple dependencies
*
Asset::add('jquery-ui', 'js/jquery-ui.js', array('jquery', 'fader'));
* </code>
*
* @param string $name
...
...
@@ -236,7 +236,7 @@ class Asset_Container {
* Get the link to a single registered JavaScript asset.
*
* <code>
*
echo $container->get_script('jquery');
*
echo $container->get_script('jquery');
* </code>
*
* @param string $name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment