wyanez/zf2-doctrine-skeleton
最新稳定版本:0.1.0
Composer 安装命令:
composer require wyanez/zf2-doctrine-skeleton
包简介
Skeleton Application for ZF2 and Doctrine
README 文档
README
Introduction
This is a simple, skeleton application using the ZF2 MVC layer and module systems and Doctrine2 ORM Layer. This application is meant to be used as a starting place for those looking to get their feet wet with ZF2 and Doctrine2 ORM Layer. Contains base classes: BaseDoctrineController, BaseDoctrineForm, BaseDoctrineModel and BaseDoctrineEntity and thus facilitate the development of your application.
Installation
Simply clone this project and run
$ php composer.phar install
Post-Installation
- Create
doctrine.local.php:cp autoload/doctrine.local{.php.dist,.php} - Edit
doctrine.local.phpand set your params of conexion to database in $dbParams array. - Create your entities and place it in the folder
module\Application\src\Application\Entity, this entities must belong at namespace\Application\Entity - Optional: Activate
ZendDeveloperTools:
$ cp config/autoload/zenddevelopertools.local{.php.dist,.php}
Activate the module ZendDeveloperTools in the section 'modules' of file `config\application.config`, uncoment the line //'ZendDeveloperTools'.
Web Server Setup
PHP CLI Server
The simplest way to get started if you are using PHP 5.4 or above is to start the internal PHP cli-server in the root directory:
php -S 0.0.0.0:8080 -t public/ public/index.php
This will start the cli-server on port 8080, and bind it to all network interfaces.
**Note: ** The built-in CLI server is for development only.
Apache Setup
To setup apache, setup a virtual host to point to the public/ directory of the project and you should be ready to go! It should look something like below:
<VirtualHost *:80>
ServerName zf2-tutorial.localhost
DocumentRoot /path/to/zf2-app/public
SetEnv APPLICATION_ENV "development"
<Directory /path/to/zf2-app/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-12-14