News Feed
Sections




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

The Bakery:
Some ideas to organize your CSS files and autoload them in CakePHP
January 16, 2007 @ 09:14:00

On The Bakery (Everything CakePHP) blog today Tulio Faria shares some ways to organize your CSS files to where they can be autoloaded through your CakePHP application.

There's five different ideas that he presents:

  • CSS files named without any link with controller names
  • CSS with the same controller name
  • CSS file with the same name of controller, but only if CSS file exists
  • one CSS file for each method of controller
  • a CSS file for each method of controller, a little bit more organized
each with their own code and explanation. Tulio also notes quickly that he prefers the last one, keeping things a bit cleaner and more organized.

1 comment voice your opinion now!
cakephp organize css file method idea cakephp organize css file method idea


blog comments powered by Disqus

Similar Posts

The Bakery: Lots of New Articles/Tutorials/Components

Felix Geisendorfer's Blog: Bringing the cold war to CakePHP 1.2 - The Containable Behavior

PHP-Coding-Practices.com: How To Generate Monochromatic CSS Stylesheets Within Seconds Using PHP

Nessa's Blog: Using PHP to Display Version Info (I and II)

The Bakery: Mambo, Layout Switching, SimplePie and Caching Elements


Community Events





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


release interview introduction community install symfony podcast list bugfix library language wordpress series laravel api application threedevsandamaybe configure developer code

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