converting more of playlist.php to propel ORM.
This commit is contained in:
parent
d5546c3952
commit
9f79b1bf89
20 changed files with 537 additions and 570 deletions
|
@ -2,6 +2,12 @@
|
|||
# NOTE: You have to load all classes that use session variables BEFORE you make a call to session_start()!!!
|
||||
session_start();
|
||||
|
||||
// Initialize Propel with the runtime configuration
|
||||
Propel::init(__DIR__."/../backend/propel-db/build/conf/campcaster-conf.php");
|
||||
|
||||
// Add the generated 'classes' directory to the include path
|
||||
set_include_path(__DIR__."/../backend/propel-db/build/classes" . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
// initialize objects ###############################################
|
||||
$Smarty = new Smarty;
|
||||
$Smarty->caching = false;
|
||||
|
@ -22,14 +28,13 @@ $uiBase =& $uiBrowser;
|
|||
$jscom = new jscom(array("jscom_wrapper"));
|
||||
$jscom->handler();
|
||||
|
||||
|
||||
// load Smarty+filters ##############################################
|
||||
require_once(dirname(__FILE__).'/ui_smartyExtensions.inc.php');
|
||||
|
||||
//$Smarty->load_filter('output', 'trimwhitespace');
|
||||
//$Smarty->load_filter('post', 'template_marker');
|
||||
$Smarty->load_filter('output', 'localizer');
|
||||
|
||||
|
||||
// some basic things ################################################
|
||||
foreach (get_defined_constants() as $k=>$v) {
|
||||
$Smarty->assign($k, $v);
|
||||
|
@ -64,4 +69,4 @@ if (isset($_SESSION['retransferFormData']) && is_array($_SESSION['retransferForm
|
|||
unset($_SESSION['retransferFormData']);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue