> Hi , i am newbie to cakephp.Let's imagine i want to render such HTML
> (this is my layout) :
> ....
> <td background="img/probstandart2.png" class="myclass">
> <img src="img/emblema.png" align="left" class="img"/>
> <font class="text">
> <?php echo $content_for_layout ?>
> </font>
> </td>
> ....
>
> i have problems with path to images.i copied images to app/webroot/
> img ... but it won't work.Should i use helpers ????i understood how to
> render image using $html->image ... But what i should put into my
> layout to get such html :
> <td background="img/probstandart2.png" class="myclass">
> What helper i should use and where i should place images?????
>
>
> 2) Is there is any way to write plain html (such as in first listing)
> and don't use php helpers at all .... how i should write image paths
> and where to place it in my directory tree??
Use an absolute route, i.e. : /img/probstandart2.png and put images in
webroot/img/. Generally is better to use the helper, i.e.
$html->url('img/probstandart2.png')
> Thanks for any help!
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---