Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-07-08 22:03:16

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

ZC57 – Selectively Adding CSS with Zend_Layout

This video outlines a little trick I've found immensely helpful in larger applications: managing your css selectively. Luckily, the Zend Framework is built with some great features for handling this case using Zend_View and Zend_Layout. Enjoy!

Offline

#2 2010-07-11 17:38:11

Manuel
Member
Registered: 2009-12-09
Posts: 14

Re: ZC57 – Selectively Adding CSS with Zend_Layout

Nice ZendCast!

I would like a follow-up showing the css- (and js-) minify in action. Maybe the files can be combined and minified automatically ?

Offline

#3 2010-09-16 09:00:25

Rhoxus
New member
From: Netherlands
Registered: 2010-08-24
Posts: 2
Website

Re: ZC57 – Selectively Adding CSS with Zend_Layout

Would love to know that aswel, so we don't have to minify manually every time we edit the files. PHP would do that for us so we can keep a dev copy and have one stripped for production.

Offline

#4 2010-09-16 09:10:18

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

Re: ZC57 – Selectively Adding CSS with Zend_Layout

there are definitely ways of doing the minification automatically. you can create an object that grabs the headScript and runs the file through Minify (there's an open source library for this). I could put a screencast together around this if you'd like.

Offline

Board footer

Powered by FluxBB