1. Go to this page and download the library: Download fabiopaiva/zfc-user-crud library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fabiopaiva / zfc-user-crud example snippets
//
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
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',
)))));
## Create tables
./vendor/bin/doctrine-module orm:schema-tool:update --dump-sql
#if it's ok, execute
./vendor/bin/doctrine-module orm:schema-tool:update --force
In your view use this routes:
echo $this->url('zfc-user-crud');
echo $this->url('zfc-user-crud-role');
echo $this->url('zfc-user-crud-password');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.