Friday, August 5, 2011

html->css is generating wrong path

Hi
I am new to cakephp. I have installed apache2 and put cakephp 1.2
folder in htdoc. In my layout file, I want to include css files so I
am using

echo $html->css(array('login'));

<link href="/cake_app/css/login.css" type="text/css" rel="stylesheet">
instead of
<link href="/css/login.css" type="text/css" rel="stylesheet">

Because of wrong href css file is not included... and same is
happening with images and js files. Can any one tell me what am i
doing wrong. my css file is kept in cake_app/app/webroot/css folder.
Thanks in advance.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate