News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Managing CSS and JavaScript files within a Zend Framework App
February 09, 2010 @ 10:48:56

On the Zend Developer Zone there's a recent tutorial from Andy Baird looking at an interesting way to manage CSS and Javascript files in a Zend Framework application. His suggestion can help tame those larger sites where multiple CSS/Javascript files can be a hassle to maintain.

Full design control usually means large, thousand plus line CSS files that equal serious pain when it comes to maintenance or building upon. If you don't namespace your selectors carefully you'll end up paying for it down the road. And heaven forbid you apply a default HTML tag styling. So, ranting aside, how do you maintain flexibility and still keep tidy CSS and JavaScript?

He's created two helpers to, well, help with the problem. They take in the path of a CSS/Javascript file and add it to either the stylesheet list or the file list to load into the header. He also includes an example of it in action, adding multiple CSS and Javascript files to the header of a sample application and echoing them back out.

0 comments voice your opinion now!
css javascript zendframework helper tutorial


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: API Client TDD with Mocked Responses

Fortrabbit.com: Video: Symfony2 on fortrabbit

Richard Thomas' Blog: Solar Framework Shorts - Extending Solar's Page Controller

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1

PHPMaster.com: From Zero to Cloud: Setting up an EC2 Sandbox, Part 3


Community Events

Don't see your event here?
Let us know!


library series voicesoftheelephpant laravel language unittest laravel5 release opinion threedevsandamaybe introduction extension development framework wordpress feature interview api podcast community

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework