A Silex application which uses Propel, Backbone.
Install dependencies:
php composer.phar install
Build Model classes, SQL, and the configuration:
./vendor/propel/propel1/generator/bin/propel-gen app/config main
Configure a database:
mysql -uroot -e 'CREATE DATABASE propilex'
mysql -uroot propilex < app/config/sql/Propilex.Model.schema.sql
You're done!
All the configuration is located in the app/config/
directory.
runtime-conf.xml
contains the database configuration, if you modify it, don't forget to rebuild things by using the previous command;config.php
you should not edit this file, except to turn on/off debugging stuffs.
Inspirated by: http://www.jamesyu.org/2011/01/27/cloudedit-a-backbone-js-tutorial-by-example/