ZfcUserCrud provide a CRUD interface to manage Users and Rolers. Require ZfcUserDoctrineOrm.
php composer.phar require fabiopaiva/zfc-user-crud:dev-master
In application.config.php enable this modules:
<?php //
return array(
'modules' => array(
'DoctrineModule',
'DoctrineORMModule',
'ZfcBase',
'ZfcUser',
'ZfcUserDoctrineORM',
'ZfcUserCrud',
// .. Another modules you use
'Application'
),
...
Don't forget to configure your Doctrine ORM eg: doctrine.local.php
<?php
return array(
'doctrine' => array(
'connection' => array(
'orm_default' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => array(
'host' => 'localhost',
'port' => '3306',
'user' => 'dbUser',
'password' => 'dbPass',
'dbname' => 'dbName',
)))));
./vendor/bin/doctrine-module orm:schema-tool:update --dump-sql
#if it's ok
./vendor/bin/doctrine-module orm:schema-tool:update --force
In your view use this routes:
<?php echo $this->url('zfc-user-crud');?> For user interface
<?php echo $this->url('zfc-user-crud-role');?> For role interface
Override configuration if you wanna use your own entities
return array(
'zfcusercrud' => array(
'userEntity' => 'ZfcUserCrud\Entity\User',
'roleEntity' => 'ZfcUserCrud\Entity\Role'
)