Skip to content

Commit 17efcb0

Browse files
committed
Merge pull request #67 from dennis-fedco/patch-2
Added sample Installation Instructions for the module
2 parents 731e780 + 5f9d198 commit 17efcb0

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,36 @@ Dependencies
1919
- [ZfcUser](https://github.com/ZF-Commons/ZfcUser)
2020
- [DoctrineModule](https://github.com/doctrine/DoctrineModule)
2121
- [DoctrineORMModule](https://github.com/doctrine/DoctrineORMModule)
22+
23+
Installation
24+
------------
25+
Set up Database Connection Settings for Doctrine ORM:
26+
27+
Namely, go to [Doctrine Connection Settings](https://github.com/doctrine/DoctrineORMModule#connection-settings), and copy/paste/modify the example configuration file content into your `config/autoload/doctrine.orm.local.php`.
28+
29+
Install Zfc Components:
30+
31+
php composer.phar require zf-commons/zfc-user-doctrine-orm
32+
33+
Set up your Modules in `config/application/application.config.php`, something like
34+
35+
'modules' => array(
36+
'DoctrineModule',
37+
'DoctrineORMModule',
38+
'ZfcBase',
39+
'ZfcUser',
40+
'ZfcUserDoctrineORM',
41+
'Application',
42+
),
43+
44+
Now, you can use [ZfcUser SQL schema](https://github.com/ZF-Commons/ZfcUser/tree/master/data) to set up your database tables.
45+
46+
Alternatively, you can use `doctrine-module` to do this work for you:
47+
48+
vendor/bin/doctrine-module orm:schema-tool:update --dump-sql
49+
50+
If SQL looks okay, do:
51+
52+
vendor/bin/doctrine-module orm:schema-tool:update --force
53+
54+
You can now navigate to `/user` and it should work.

0 commit comments

Comments
 (0)