Thread: Zend framework
View Single Post
(#5 (permalink))
Old
CesarAKG CesarAKG is offline
Junior Member
CesarAKG is on a distinguished road
 
Posts: 2
Join Date: May 2008
Default 11-12-2008, 06:42 PM

Then, to use Zend Framework, it's necessary unpack it at the user directory. What is the better scheme to it? Zend documentation suggests that you build a structure like this:

myApp
+ Data
+ Application
+ Library
+ Public

with the "Public" part of the structure the only part visible to exterior. That's equivalent to, say:

homedir
+ data
+ application
+ library
+ public_html

But I'm new both to PHP and to Zend, and I don't know if an PHP application in homedir/public_html can access something in homedir/data, or homedir/application

One other possible structure is

homedir
+ public_html
. + data
. + application
. + library
. + html

In this case, you will have a "index.php" in homedir/public_html/html, and .htaccess in the rest of the structure, to forbide the users from viewing the contents of homedir/public_html/data, for example.

What is the better approach? Is the first approach feasible?

P.S.: Sorry for the "engrish", I'm brazilian.
Reply With Quote