|
0
|
1 |
What is Assetic? |
|
|
2 |
---------------- |
|
|
3 |
|
|
|
4 |
Assetic is an asset management framework for PHP 5.3. Assetic enables you to |
|
|
5 |
use a variety of third party tools that will help bring order to your |
|
|
6 |
application's Javascripts, stylesheets and images. |
|
|
7 |
|
|
|
8 |
How Do I Use Assetic? |
|
|
9 |
--------------------- |
|
|
10 |
|
|
|
11 |
There are two distinct approaches you can take when using Assetic: |
|
|
12 |
|
|
|
13 |
1. Build, dump and output assets in PHP files that you reference directly |
|
|
14 |
from your templates |
|
|
15 |
2. Defining assets in your templates ("on the fly") and use a loader to |
|
|
16 |
extract, dump and output them |
|
|
17 |
|
|
|
18 |
The first approach is simpler, but the second, with all its moving parts, |
|
|
19 |
offers more flexibility and opportunity for optimization. |
|
|
20 |
|
|
|
21 |
Next: [Building and Dumping Assets](build.md) |