eddiejaoude / Zend-Framework--Doctrine-ORM--PHPUnit--Ant--Jenkins-CI--TDD-

[DEPRECATED for ZF2 & Composer] Best practice Zend Framework (ZF) skeleton / base with Doctrine2 integration : High code coverage & build scripts using TDD. Issues section ar e used for project planning (features etc)
http://www.jaoudestudios.com
159 stars 40 forks source link

Allow the app to be deployed below root of host #47

Closed papayasoft closed 13 years ago

papayasoft commented 13 years ago

Currently, all urls - like stylesheets - rendered by the app assume that the app is running at the root of the virtual host:

http://example.com/

However, if you deploy it below the root - at a url like http://example.com/myapp - then the browser requests for stylesheets (and, eventually javascripts, images, etc) result in 404.

We could use a baseUrl() view helper in all front-end renderings in order to make this app function correctly below the web root.

koenHuybrechts commented 13 years ago

Thanks for the suggestion! This is off course a very good idea! At the moment a lot of links (hyperlinks, css, js, ...) are hardcoded to have everything working. Plan is to make it possible to run the app below the web root (as you suggest). If you wish you can work on it and we'll add it to the master branch? (just a suggestion)

koenHuybrechts commented 13 years ago

(sorry, I clicked the wrong button :-$ )

papayasoft commented 13 years ago

Roger that. I'll do it and submit a pull request when it's ready.

Cheers! ;-)

eddiejaoude commented 13 years ago

Nice work guys, I had a quick look, but will be able to take a proper look on Saturday. Can this issue now be closed?

papayasoft commented 13 years ago

Yep, I think we're good. Closing.