I got a little lost here, the solution may be hiding under my nose, but I could not get it, I thought about you guys if someone can help.
Here is the problem: I have a standard Zend Framework file format:
Project -application -controllers -views -layouts -scripts -layouts.phtml -library -public -images -index.php
Now the problem is that I only refer to images in layouts.phtml with images / logos, etc., and the same thing in controller views /images/arrow.gif
This works fine if the request is simple http: // servername / project / controller
but if the request is deeper, like http: // servername / project / controller / index / page / 2
images break, they obviously cannot get the path, which I notice, if I am on a later request, the image path will be http: //servername/project/controller/index/page/2/images/logo.gif , which is not, image open / images
My understanding was (and I was also looking for it a bit), the infrastructure knows the default publication and will always direct images to public / images. However, this does not work. Should I add a rewrite rule or something else?
Can anyone help? I will be grateful!
source share