My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 105: Integration with the Zend Framework
3 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  st...@mrclay.org
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by leeked, Apr 21, 2009
It would be nice to see this library integrated into the Zend Framework. 
Right now I'm hacking around ZF and Minify to get them to work together.

It would be nice to have a more fluid integration.
Comment 1 by leeked, Apr 21, 2009
Note: This is more of a task/enhancement, but for some reason I could only enter it as 
a 'defect'.
Comment 2 by st...@mrclay.org, Apr 21, 2009
How do you imagine such an integration? What would the API/end user code look like? 
I've yet to do any serious work with ZF, but making Minify easier to work into 
existing frameworks is a goal I'm behind.

At the very least we could host some code in the repo/guide on the wiki.
Status: Accepted
Labels: -Type-Defect Type-Enhancement
Comment 3 by bmharris, Jun 09, 2009
I've done some integration with Zend Framework on projects I work on, and so far its
consisted of the following pieces:

-config file that is an array of js or css files
-section in the Initializer that uses Zend_Registry to register the array of js/css
to be used by other classes (view helper)
-view helper use Minify_Build and config array in Zend_Registry to render the script
include, or include the scripts un-minified if a disabled flag is set (useful for
development)
-last piece is a js.php or css.php file in the public that gets the same js/css
config array, and actually outputs the minified data using Minify::serve();

There may be a better way, but so far that's what I've come up with.  I'd be glad to
help out with sharing the View Helper, and other pieces of code as a tutorial of sorts.
Sign in to add a comment

Hosted by Google Code