Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.2.4stable
|
BSD License |
2.1.2stable
|
09/03/2009 |
|
1.2.3stable
|
BSD License |
2.1.2stable
|
08/03/2009 |
Releases for sf 1.1
| Version |
License |
API |
Released |
|
1.1.4stable
|
BSD License |
2.1.2stable
|
09/03/2009 |
|
1.1.3stable
|
BSD License |
2.1.2stable
|
08/03/2009 |
|
1.1.2stable
|
BSD License |
2.0.1stable
|
27/08/2008 |
|
1.1.1stable
|
BSD License |
2.0.1stable
|
25/08/2008 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
1.1.0stable
|
BSD License |
2.0.1stable
|
25/08/2008 |
|
1.0.4stable
|
BSD License |
2.1.2stable
|
09/03/2009 |
|
1.0.3stable
|
BSD License |
2.1.2stable
|
08/03/2009 |
|
1.0.2stable
|
BSD License |
2.0.1stable
|
27/08/2008 |
|
1.0.1stable
|
BSD License |
2.0.1stable
|
25/08/2008 |
|
1.0.0stable
|
BSD License |
2.0.1stable
|
25/08/2008 |
Changelog for release 1.0.3 - 08/03/2009
Other releases
Release 1.2.4 - 09/03/2009
fix sfMinifyPlugin.php change function useServerCache to setCache
Release 1.2.3 - 08/03/2009
Release 1.1.4 - 09/03/2009
fix sfMinifyPlugin.php change function useServerCache to setCache
Release 1.1.3 - 08/03/2009
Release 1.1.2 - 27/08/2008
fix symfony compressed option and a bug that not all files where used
Release 1.1.1 - 25/08/2008
Release 1.1.0 - 25/08/2008
Release 1.0.4 - 09/03/2009
fix sfMinifyPlugin.php change function useServerCache to setCache
Release 1.0.3 - 08/03/2009
Release 1.0.2 - 27/08/2008
fix symfony compressed option
Release 1.0.1 - 25/08/2008
Release 1.0.0 - 25/08/2008
sfMinify plugin
Integrate the minify library see http://code.google.com/p/minify/ into symfony.
Overview
Combines, minifies, and caches JavaScript and CSS files on demand to speed up page loads.
Usage
add this to your .htaccess file
# Combine and minify JavaScript and CSS with Minify.
RewriteRule ^(.*\.(css|js))$ ../plugins/sfMinifyPlugin/sfMinifyPlugin.php?f=/$1 [L,NC]
if you have run symfony on a subdirectory change it to
# Combine and minify JavaScript and CSS with Minify.
RewriteRule ^(.*\.(css|js))$ ../plugins/sfMinifyPlugin/sfMinifyPlugin.php?f=/subdirectory/$1 [L,NC]
copy plugins/sfMinifyPlugin/web/sfMinifyPlugin.php to your web directory and edit the project configuration
Filter or Helper
you can activate minify over the filter or with the helpers
change the common filter in your filters.yml to
common:
class: sfMinifyFilter # Filter class
param:
javascripts: true
stylesheets: true
or add/change the helper in your layout file (default layout.php) to
use_helper('SfMinify');
minify_include_javascript();
minify_include_stylesheets();
Configuration
you can enable and disable javascript or stylesheet minify by setting the params in filter.yml by default both types will be minified
Compression
to compress the files simple set the compressed option to on in settings.yml
[plain]
all:
.settings:
compressed: on