I am looking for how to get absolute path using symfony1.4. If any one help me with this issue. for example,
<img src="'.public_path('logo.jpg').'" alt="html logo" style="width:70px;height:70px;">
The path which i get is like,
/erp/symfony/web/logo.jpg
but what i want is like,
C:/wamp/www/erp/symfony/web/logo.jpg
I need this path to export my image using DOMPDF.
I would really appreciate them.
Thanks in advance!
You should use
which brings you the absolute dir of your web path.
In your case it will be :