Archive for August, 2013
Installation via composer:
composer require "zf-commons/zfc-user-doctrine-orm:0.1.*"
An appropriate version of ZfcUser should be pulled in during installation.
- Copy vendor/zf-commons/zfcuser.global.php.dist to config/autoload/zfcuser.global.php
- Edit your application.config.php to include
modules => array('ZfcBase', 'ZfcUser', 'ZfcUserDoctrineORM')
You don’t have to edit zfcuser.global.php – the default values will work fine, and zfc-user-doctrine-orm will inject itself such that you don’t even have to edit the zend_db_adapter (as I initially thought you would).
Custom User Entity
If you wish to use a custom user entity definition (too add additional fields, for example).
To do this, modify your zfcuser.gloabl.php to include the following configuration values:
'zfcuser' => array( 'UserEntityClass' => '\UserEntityNamespace\UserEntityClass', 'EnableDefaultEntities' => false ),
If you are using the Zend Zerver Installation on the OpenShift cloud and happen to forget your password, you may find yourself wondering where gui_passwrd.sh is located.
When you ssh into your openshift gear, you find that the zend/bin folder does not include the gui_passwrd.sh script. This is because this folder stores the openshift scripts to install / maintain / remove the zend server itself. The Zend Server’s bin folder is located at zend/usr/local/zend/bin
#To Change your password, login to your openshift instance and enter the following command zend/usr/local/zend/bin/gui_passwd.sh
Alternatively, use the new configuration utility, as gui_passwd.sh is deprecated:
zend/usr/local/zend/bin/zs-setup set-password <password>