M
M
Meliborn2011-12-13 21:57:01
Zend Framework
Meliborn, 2011-12-13 21:57:01

Zend and correct paths in layout?

Created a "header" layer. In it, the path to the images looks like this:
src="images/logo.png"
If I access the index action, i.e. localhost/users/ then everything is fine. As soon as you add your own action, and refer to it, then the pictures disappear.
Example - localhost/users/add/
I tried to write src="<?this->baseUrl()?>/images/logo.png", of course it helps, but now I can't attribute it to every picture.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2011-12-13
@taliban

Google the difference between images/logo.gif and /images/logo.gif and everything will immediately fall into place and work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question