propel added as ORM for backend
This commit is contained in:
parent
649656779c
commit
0c74dc5a43
95 changed files with 38537 additions and 0 deletions
14
backend/propel-db/test.php
Normal file
14
backend/propel-db/test.php
Normal 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();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue