06-17-2010, 07:02 AM
[eluser]UdayD[/eluser]
hi!
i just wrote a code in a view and have set a base url as below:
now when i load an image in my view i have given like this
<img src="echo $base/images; /catch-me.gif" alt="catch-me"/>
but i have to write
like this
<img src="images/catch-me.gif" alt="catch-me"/>
i mean that can't it set the base url automatically like normally we do when we are developing a project.
now i have to write as
sorry to sttach the sample file because it was not getting pasted over here!
hi!
i just wrote a code in a view and have set a base url as below:
Code:
<base href="<?php echo "$base"; ?>">
<img src="echo $base/images; /catch-me.gif" alt="catch-me"/>
but i have to write
like this
<img src="images/catch-me.gif" alt="catch-me"/>
i mean that can't it set the base url automatically like normally we do when we are developing a project.
now i have to write as
sorry to sttach the sample file because it was not getting pasted over here!