static link in Zend Framework layout

How do I get a static link to my static file in Zend layout.phtml? I'm a newbie in Zend.

I mean that I have to create something like in the snippet. What do I put instead of "...."?
<img src='<?= $this->url (....) ?>' />

Open in new window

technoparkcorpAsked:
Who is Participating?
 
RoonaanConnect With a Mentor Commented:
Hi,

You can use the front controller to get the base url for your application. Then you can append to your images quite easily.

<img src="<?php echo Zend_Controller_Front::getInstance()->getBaseUrl();?>/images/test.gif" />

Kind regards

Arnoud
0
 
paulp75Commented:
you can just set it to the url if you like such as <img src='/images/icon.gif" />
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.