Hello, I'm a zend framework noob and I'd like to understand a couple of things that are not clear to me yet. I've read the quickstart documentation document on how to setup the framework and I've also learned how to do it using zend tool but the documentation always uses absolute paths so I'd like to which is the best way to achieve this:
- having the website not on the web root (on my local apache I've it like /test/zend/my_test/test01/ ...) - having the library folder outside my project (just make a symbolic link or better to change config files?) I've found this message: http://www.nabble.com/forum/ViewPost.jtp?post=11117463&framed=y that suggests to define a/use the "BASE_PATH" constant.. and this should answer to my first question.. but is not clear to me if this is the best method and if yes, I wonder why this is not used / showed in the quickstart tutorial.. and also.. from my test with the guestbook example I've changed the _getGuestbookForm method adding: $base =$this->getRequest()->getBaseUrl(); $form->setAction($base.$this->_helper->url('sign')); ..cause else it didn't worked correctly if it was on a subdirectory.. so which one is the best to use? getBaseUrl() or BASE_PATH.$this->_helper->url('sign') or .. ? and how do you handle this usually inside views? I've also thought to use the html base tag in the header but not sure that is the best method.. Also in that example there is a forms folder with the form code.. which are the best practices to handle that kind of things? Is that (having a form folder) the best one or which one do you like the most? All this confusion makes it also more confusing to me the approach to dojo.. I've did some tests and was able to successfully ran some examples that used Dijit but not sure I did that in the best way.. but maybe I'd better to send another message dedicated to that topic. Thanks for now for your answers and tips and sorry if my English is not perfect but I'm from Italy :p ciao, Giovanni.
