-all:
- cd propel && propel-gen
+all: composer.phar
+ php composer.phar install
+ chmod 755 vendor/propel/propel1/generator/bin/phing.php
+ cd propel && ../vendor/propel/propel1/generator/bin/propel-gen
+
+composer.phar:
+ curl -sS https://getcomposer.org/installer | php
--- /dev/null
+{
+ "name": "readifood/readifood",
+ "description": "Readifood",
+ "require": {
+ "propel/propel1": "1.6.9"
+ }
+}
$root = join(DIRECTORY_SEPARATOR, array($_SERVER['DOCUMENT_ROOT'], ".."));
$propel_root = join(DIRECTORY_SEPARATOR, array($root, "propel"));
$lib_root = join(DIRECTORY_SEPARATOR, array($root, "lib"));
- require_once(join(DIRECTORY_SEPARATOR, array("propel", "Propel.php")));
+ require_once(join(DIRECTORY_SEPARATOR, array($root, "vendor", "autoload.php")));
Propel::init("$propel_root/build/conf/$propel_project-conf.php");
set_include_path(join(PATH_SEPARATOR, array(join(DIRECTORY_SEPARATOR, array($propel_root, "build", "classes")), get_include_path())));