Images are best put in the "img" folder in the webroot, because this
way you can use Cake's built in html helper:

$html->image('myimage.jpg');

> what is the webroot dir for? when and what to put into this dir?

The webroot is meant for all external files your layout uses, so
images, css, javascripts, etc.

Gerben.

On 20 apr, 17:21, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> when I create my own layout file ,where to put all the related pics
> and swfs?my layout file is in cake\app\views\layouts
>
> what is the webroot dir for? when and what to put into this dir?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to