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
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.