propel added as ORM for backend

This commit is contained in:
naomiaro 2010-11-04 17:48:29 -04:00
parent 649656779c
commit 0c74dc5a43
95 changed files with 38537 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<?php
// Include the main Propel script
require_once (__DIR__."/../../3rd_party/php/propel/runtime/lib/Propel.php");
// Initialize Propel with the runtime configuration
Propel::init(__DIR__."/build/conf/campcaster-conf.php");
// Add the generated 'classes' directory to the include path
set_include_path(__DIR__."/build/classes" . PATH_SEPARATOR . get_include_path());
$pl = new CcPlaylist();
$pl->setName("Playlist in Campcaster!");
$pl->save();