How do I tell CakePHP to parse CSS/JS files like .ctp?

There are a few problem with the default routing of pictures and the like.

Asked by Contemplate, on 3/3/10

Well first of all I just like to know.

Secondly: Autogenerate some functions to interact with Controller View. All I need now is to generate files automatically with actually write them physically like I do now.

Contemplate - on 3/3/10

<< comments | comments >>

3 Answers

you dont.

you are prob not doing it correctly. what is the problem and what are you trying to do

Answered by dogmatic69on 3/3/10

In a CSS file, if you want to add a background image, you will have to use "classic" CSS syntax:


background-image: url(../img/my-image.png);

There is no need to parse these files with PHP content. Idem for Javascript... it is just javascript, no need for PHP

Answered by real34on 3/3/10

edit:

sorry, i had a question, not an answer

Answered by panter4on 14/5/10

<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Rating

0

Viewed

255 times

Last Activity

on 14/5/10