lgstest / dylanstest
A test project assigned to Dylan Johnson
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: >=5.3.3
- afarkas/html5shiv: dev-master
- friendsofsymfony/user-bundle: *
- incenteev/composer-parameter-handler: ~2.0
- knplabs/knp-menu: 2.0.*@dev
- knplabs/knp-menu-bundle: dev-master
- liuggio/excelbundle: >=1.0.4
- propel/propel-bundle: *
- psliwa/pdf-bundle: dev-master
- sensio/distribution-bundle: *
- sensio/framework-extra-bundle: *
- sensio/generator-bundle: *
- symfony/assetic-bundle: *
- symfony/monolog-bundle: *
- symfony/swiftmailer-bundle: *
- symfony/symfony: *
- twig/extensions: *
- willdurand/propel-typehintable-behavior: *
This package is not auto-updated.
Last update: 2025-03-24 16:56:31 UTC
README
The following requirements should be met by this repository:
- Use the Symfony2 Standard edition, but replace Doctrine with Propel ORM
- Specify user roles as defined by Peter Kartawidjaja.
- Upon login, redirect users to a page specific to their roles
- Prevent unauthorized access to role pages
Installation
- Packagist/Composer: this project can be installed by running
php composer.phar create-project -s dev lgstest/dylanstest /path/to/root
- Download: simply click the download button at the top of the repository.
Use
- If you downloaded the repo instead of using Composer, install requirements:
php composer.phar install
- Check configuration: change the mysql user/password to appropriate settings for your system. DO NOT change the secret, as it will cause the Propel Fixtures to break.
- Move into the root
cd /path/to/root
- IMPORTANT: To allow the Propel Fixtures to load, because they do not support classes,
you need to edit the schema in the FOSUserBundle. Go to
/root/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/propel/schema.xml
and addlast_login
afterpassword_requested_at
on line 37. (I know this is a hack; c'mon, I only worked for a couple hours on it) - Build the models:
php app/console propel:build
- Build the SQL:
php app/console propel:sql:build
- Create Database:
php app/console propel:database:create
- Insert the tables:
php app/console propel:sql:insert --force
- Install fixtures:
php app/console propel:fixtures:load
- Refer to email from Dylan about usernames and passwords for various roles.