On my application, I have made a few links to the controller "categories" instead of doing "categories/index". Cake calls by default the index method, so I get the page I wanted. But the links to images in my css and js files are broken.
I know I could handle this with routes but I like such default behavior. Would Fase be a good answer for this or am I again completely out-of-topic ? Olivvv Michal Tatarynowicz wrote: > If you want to, you can use Fase just for Javascript and CSS. Put > Fase's files in Cake's /app/webroot/fase and point the browser at it. > Assuming that your Cake app lives in www.site.com/foobar/ , this link: > > <link rel="Stylesheet" type="text/css" href="/foobar/fase/css/default" > media="screen" /> > > ...is answered with parsed contents of > /foobar/fase/app/css/default.css, and this: > > <script type="text/javascript" src="/foobar/fase/js/foo"></script> > > ...gets parsed contents of /foobar/fase/app/js/default.js > > I strongly recommend keeping the default styles provided with Fase: > they include Yahoo's CSS Fonts which helps to keep font sizes > consistent between different browsers and CSS Reset which zeroes all > the different default paddings, margins and aligns. Also included is a > brilliant hack to clear floats without any additional markup and a fix > for IE's problems with paddings on <input type="button"> and <input > type="submit"> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
