tags:

views:

89

answers:

2

Hi sir,

i am very new in cakephp.i have created a folder in app/webroot/. for image placing. eralier by default img folder cantain image. which i have used some thing like this " image('foldopen.png',array('width'=>14,'height'=>'10','alt'=>'open'));?> "

now i have created new image folder insted of img folder. how to use this. please help me .its very urgent.

Thanks Manish [email protected]

A: 

use a slash at the beginning of the path. For example

echo $html->image('/images/foldopen.png');

Using the slash at the start is relative to the app/webroot directory

jimiyash
ok..thanks for your reply....
manish
A: 

If you want to keep your $html->image() statements short and modify the default image route you could always override the default behavior of image() by altering the config/tags.php file.

more info on changing the tag output

the0ther