In the Zend Framework, I usually set up
vhosts so that I can get my static resources such as JS, CSS via " /css/styles.css ", but what if I do not set up vhost s? My route to stable resources will be like " http: //localhost/app1/css/styles.css ". Is there a way to find out what is the proper path without "code = css / styles.css " prefix " http: // localhost / app1 / hardcoding? If done properly , I'm able to transfer my app from http: // localhost / app1 to http: // localhost / a / deep / path / app2 /
You need the Base URL Viewer -
& lt; Php echo $ this- & gt; headLink () - & gt; Attachment stylesheet ($ -> - baseUrl ('/ css / global.css'))? & Gt;