install zend framework without apache virtual hosts

前端 未结 2 1040
南方客
南方客 2021-01-14 10:40

I have my website in /var/www/invent. I have zend-framework in /var/www/invent/library.

Basically what i want is when i access http://localhost/invent to work as if

2条回答
  •  北海茫月
    2021-01-14 11:08

    Your application document root is wherever you place your index.php file, the locations of the Zend Framework library and your application code are irrelevant.

    Provided you've used the BaseUrl helper in your views for static assets (JavaScript, CSS, images) and the Url helper for action links, your application should be very portable in regards to relative path from the web server document root.

    Let me know if I'm way off track here. Your question could do with some more details.

提交回复
热议问题