On Mon, Nov 17, 2008 at 12:28 PM, i_Am_ToO_SeXy <[EMAIL PROTECTED]> wrote:

>
> Hello.
>
> CakePHP is driving me mad.
>
> I can't figure out a smart way to manage CSS and Javascript inside my
> app.
>

.. and you believe CakePHP is the culprit?

This is my goal:
> - Having one (or many) CSS files common to all views


In your layout.

>
> - Having one (or many) Javascript files common to all views


In your layout.

>
> - Having the ability to add view-specific CSS or Javascript
>

 You could check the existance of <controller>_<action>.css/js and depending
on the outcome, include them. For example:

users_login.css

(controller = users, action = login)

See the following article:

http://bakery.cakephp.org/articles/view/some-ideas-to-organize-your-css-files-and-autoload-them-in-cakephp

- Gonzalo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to