Sunday, March 20, 2011

CakePHP and Themed Assets

Just a quick note that might save some of you a lot of time, if you're working with CakePHP and trying to set up themes with theme-specific css, the CakePHP documentation will tell you to place your assets under /app/webroot/themed/example/css/ (as documented here). This makes sense, given that themed views would be under /app/webroot/themed/example/.

After some quick perusal of the cake source code, I discovered that assets should in fact be placed under /app/webroot/theme/example/css/ (theme, not themed, no 'd' - take it away).

Not the first time a single character has broken more than it's fair share of code (this coder girl may or may not have taken down an entire site by failing to declare a '.' as a literal character and not a wildcard in a regular expression), but it's the last time THAT particular character will break your themed assets.

3 comments:

  1. i have shared server and my themes assets not working on production although worked perfectly on localhost ..for Cakephp version 2.1

    ReplyDelete
  2. What is the difference between casino games and slots?
    Slot games are the most popular types of super air jordan 7 retro casino games, and the majority are 슬롯 가입 머니 slots. and discount air jordan 23 shoes online the Order jordan 15 retro now most commonly played slot 안전 바카라 games.

    ReplyDelete
  3. The feedback system data the place and velocity measurement of the machine software and sends a feedback signal to the MCU. These machines have many nozzles which is used for lifting electrical components for electronic equipment after which they alligator clips electrical place them in proper place. They are normally used for the manufacturing of computers, tablets and cell telephones and so on. At the Centre the CNC lathe machines have a lathe which transfers and manages material programmatically to the pc.

    ReplyDelete