x_maras Posted September 9, 2010 Share Posted September 9, 2010 Hi, I decided that I must learn a framework so I choosed zend framework. I installed the zend community server and tried to follow some tutorials. The first thing that I tried to do was to use the zend tools and the command "zf create project" in order to create the folder structure automatically. I couldn't do it for the directory htdocs so I created it in another directory and I just transfered it to the htdocs. My first project was called "helloworld" ... So I went to the following directory helloworld\application\views\scripts\index and I changed the content of the index.phtml in order to show in my browser something like "Hello zendframework world". Unfortunately when I type localhost/helloworld in my browser showed only the directories in this directory. I checked the .htaccess and it was as it should be. 1st Why my command didn't create the directory structure in the htdocs? 2nd Does anybody know why I couldn't see the helloworld message that I wrote in the index file located to the directory that I mention above? Quote Link to comment https://forums.phpfreaks.com/topic/212960-zf-create-project-zend-community-server/ Share on other sites More sharing options...
Cagecrawler Posted September 11, 2010 Share Posted September 11, 2010 Your root web-accessible folder needs to be helloworld/public. You'll need to set up a virtual host - the Zend Framework Quickstart Guide explains how (bottom of the page). Quote Link to comment https://forums.phpfreaks.com/topic/212960-zf-create-project-zend-community-server/#findComment-1109917 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.