Ok, i solved the css proble, but i still can't use the image. I placed it in webroot/img/dir/image.jpg and I'm trying to access it using www.mysite.com/my-app-name/img/dir/image.jpg, am I doing something wrong? now i get a 404 error.
Thanks On 30 Ott, 23:56, Grant Cox <[EMAIL PROTECTED]> wrote: > It is only trying to access a Css or Img controller because you have > links to missing files - such as /css/some.css . If that file exists > in your webroot, then it is immediately returned. If it does not > exist, the request is sent through cake, which expects a > CssController. > > So, the problem is that you have incorrect links. When you set your > Debug to 0 (in /app/config/core.php) then any "missing controller" > errors like this are just represented as 404s, so there is no problem > there. > > As for your css file not being used, make sure you are including it in > your view / layout. Look in /app/views/layouts/default.ctp (or copy > the default.ctp from /cake/libs/view/templates/layouts into your /app/ > views/layouts, then modify it to include your css). > > On Oct 31, 1:29 am, Paolo <[EMAIL PROTECTED]> wrote: > > > Hi all! > > How cani tell cake not to look for img or css controler? > > I mean, in my website I setup cake in a subdir, where i also added an > > img folder. How can i tell cake non to try to execute an img > > controller? > > Also, I've put a css (cake.custom.css) in the css dir, but while it > > correctly opens cake.generic.css, it doesnt open mine css, should i > > change something? > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
