I've been playing thinkphp CI Yii and ZF1 to find out that their core code is separate from the project code, that is, in two main directories, for just over half a year from the PHP training school. You can even put the core code in the root directory to run the project to improve security! I would like to ask, ZF2 's core code and project code together is a good thing?
Description
thinkphp: Introduces a portal file using the include (path).
CI: The source of the download is application and system separation, in the future application do development.
Yii: Command line->YIIC webapp (path) (project name) arbitrarily put the core code, as long as the specified path to the server directory is good.
ZF1: Command line->ZF Create project (PATH) (project name) like Yii
However, the core code of ZF2 must be placed in the ZENDSKELETONAPPLICATION-MASTER\VENDOR\ZF2 directory to be able to run normally (that is, under the project directory).
Tried php.ini under Include_path: (ZF2 Core code path) to install ZF2.
But does not work the same error!
This question originates from http://avnpc.com/pages/zend-framework-2-installation-for-windows as a reference!
Reply content:
I've been playing thinkphp CI Yii and ZF1 to find out that their core code is separate from the project code, that is, in two main directories, for just over half a year from the PHP training school. You can even put the core code in the root directory to run the project to improve security! I would like to ask, ZF2 's core code and project code together is a good thing?
Description
thinkphp: Introduces a portal file using the include (path).
CI: The source of the download is application and system separation, in the future application do development.
Yii: Command line->YIIC webapp (path) (project name) arbitrarily put the core code, as long as the specified path to the server directory is good.
ZF1: Command line->ZF Create project (PATH) (project name) like Yii
However, the core code of ZF2 must be placed in the ZENDSKELETONAPPLICATION-MASTER\VENDOR\ZF2 directory to be able to run normally (that is, under the project directory).
Tried php.ini under Include_path: (ZF2 Core code path) to install ZF2.
But does not work the same error!
This question originates from http://avnpc.com/pages/zend-framework-2-installation-for-windows as a reference!
Thank you for the invitation, the main reference of the tutorial is I wrote, the purpose of the tutorial is to build the environment in the shortest possible time, a lot of details are not mentioned, so you should run out of the Hello World after a detailed reading of the ZF official documents and tutorials to obtain more complete information.
In the Zendskeletonapplication Project home page In fact, the installation method of the ZF2 project has been described, the ZF2 project is recommended to use two ways to install:
First, the use of composer
git clone git://github.com/zendframework/ZendSkeletonApplication.gitcd ZendSkeletonApplicationphp composer.phar self-updatephp composer.phar install
Second, using Git
git clone git://github.com/zendframework/zendskeletonapplication.git--recursive
Whichever way you install it, the core code that eventually ZF2 in your project is referenced by Git submodule and is not mixed with the project code, so your ZF2 project's code base won't contain bloated ZF2 core code that will be downloaded only when the development or production environment runs the installation.
With regard to security issues, the final Web server bindings directory is public , and ZF2 's project files and core code directories are outside this folder, so users do not have access to public files other than access, there is no security issues.
If you restrict the permissions of the HTTP service in/public, the framework library is in/vendor or another path is no region