TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Zend Framework (http://www.talkphp.com/general/4060-zend-framework.html)

allworknoplay 03-20-2009 04:28 PM

Zend Framework
 
Hey guys,

I'm trying to dive into the Zend framework and I'm a little confused about the directory structure that they want?
My current structure looks like this.

My Apache
---------
/usr/local/apache/public

DocumentRoot is: public

Parallel to the public directory are these:

/usr/local/apache/application
/usr/local/apache/application/controllers
/usr/local/apache/application/views
/usr/local/apache/application/views/scripts

/usr/local/apache/library

/usr/local/apache/public


But in the quick start guide, they also have a directory called Quickstart/ that is above ALL the other directories including public.

So that would make it: /usr/local/QuickStart not /usr/local/Apache

So I am confused?

http://framework.zend.com/docs/quick...ject-structure

Tanax 03-20-2009 05:32 PM

I'm using this structure(using WAMP server)

c:/wamp <- server root
c:/wamp/application <- contains controllers, views, models, etc.
c:/wamp/library <- contains Zend library
c:/wamp/www <- contains accessable files from viewers, such as index.php file

It works fine for me, using exact copy-paste from the quick guide.
Funny, I started diving into Zend today aswell xD

allworknoplay 03-20-2009 06:18 PM

Quote:

Originally Posted by Tanax (Post 22386)
I'm using this structure(using WAMP server)

c:/wamp <- server root
c:/wamp/application <- contains controllers, views, models, etc.
c:/wamp/library <- contains Zend library
c:/wamp/www <- contains accessable files from viewers, such as index.php file

It works fine for me, using exact copy-paste from the quick guide.
Funny, I started diving into Zend today aswell xD

Ok we can learn together!!

So it looks like you don't have a Quickstart directory, perhaps it is not needed?

I just want to make sure, I'm just trying to do things right..

:-D

Tanax 03-20-2009 06:20 PM

c:/wamp is basicly my quickstart directory, and beneath it I got application, library and public(in my case it's called www) - which is the exact structure as the one in the quick start guide!

allworknoplay 03-20-2009 06:44 PM

Quote:

Originally Posted by Tanax (Post 22390)
c:/wamp is basicly my quickstart directory, and beneath it I got application, library and public(in my case it's called www) - which is the exact structure as the one in the quick start guide!

Right, that's why i was confused about the quickstart guide because in the linux architecture, the quickstart directory is equivalent to: /usr/local/apache

So I wasn't sure what they wanted.

They should say somewhere that quickstart is the same thing as apache...oh well....

I also didn't configure my apache with mod_rewrite and I think I need to do that for the example to work....

Tanax 03-20-2009 07:55 PM

Quote:

Originally Posted by allworknoplay (Post 22392)
Right, that's why i was confused about the quickstart guide because in the linux architecture, the quickstart directory is equivalent to: /usr/local/apache

So I wasn't sure what they wanted.

They should say somewhere that quickstart is the same thing as apache...oh well....

I also didn't configure my apache with mod_rewrite and I think I need to do that for the example to work....

Yea, they should. But the good thing is that you got it now :-)

Also thanks for the apache thing. I didn't know you had to enable it!

allworknoplay 03-20-2009 08:00 PM

Quote:

Originally Posted by Tanax (Post 22400)
Yea, they should. But the good thing is that you got it now :-)

Also thanks for the apache thing. I didn't know you had to enable it!


No problem, it will be interesting to see the difference between LAMP and WAMP.....with the ZF....


All times are GMT. The time now is 08:39 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0