TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-20-2009, 04:28 PM   #1 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default 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
allworknoplay is offline  
Reply With Quote
Old 03-20-2009, 05:32 PM   #2 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

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
__________________
Tanax is offline  
Reply With Quote
Old 03-20-2009, 06:18 PM   #3 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
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..

allworknoplay is offline  
Reply With Quote
Old 03-20-2009, 06:20 PM   #4 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

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!
__________________
Tanax is offline  
Reply With Quote
Old 03-20-2009, 06:44 PM   #5 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
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....
allworknoplay is offline  
Reply With Quote
The Following User Says Thank You to allworknoplay For This Useful Post:
Tanax (03-20-2009)
Old 03-20-2009, 07:55 PM   #6 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by allworknoplay View Post
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!
__________________
Tanax is offline  
Reply With Quote
Old 03-20-2009, 08:00 PM   #7 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
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....
allworknoplay is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zend Studio code completion framework Devels General 1 09-06-2008 05:04 PM
Zend Framework in Action (book) freenity The Lounge 2 04-06-2008 11:12 AM
Zend Framework 1.5 Devels Libraries & Extensions 5 03-17-2008 03:06 PM
Zend Framework - questions questions abiko Advanced PHP Programming 4 02-29-2008 12:46 AM
Zend Framework Karl General 13 10-24-2007 04:19 PM


All times are GMT. The time now is 03:07 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design