in zend framework, i usually setup vhosts so that i can refer to my static resources like js, css via “/css/styles.css” but what if i dont setup vhosts? my path to the static resources will be like “http://localhost/app1/css/styles.css“. is there a way to find find what is the proper path to css/styles.css without hardcoding the “prefix” http://localhost/app1/? if done properly, i shld be able to move my app from http://localhost/app1 to http://localhost/a/deeper/path/app2/
in zend framework, i usually setup vhosts so that i can refer to my
Share
You need the BaseUrl View-Helper