Example #1
0
ob_start();
session_set_cookie_params(0, '/', '', true, true);
session_start();
// the application root path
defined('BASE_URI') ? NULL : define('BASE_URI', dirname(__FILE__) . "\\");
require_once 'protected/registry/Registry.php';
$registry = new Registry();
// setup core registry objects and settings
$registry->createAndStoreObject('Template', 'template');
$registry->createAndStoreObject('Mysqldb', 'db');
$registry->createAndStoreObject('UrlProcessor', 'url');
$registry->createAndStoreObject('Security', 'security');
$registry->createAndStoreObject('Session', 'session');
$registry->createAndStoreObject('Email', 'mailout');
$registry->createAndStoreObject('Paginator', 'paginator');
$registry->createAndStoreModel('Authenticate', 'authenticate');
$registry->createAndStoreModel('Registration', 'register');
$registry->createAndStoreModel('Products', 'products');
$registry->createAndStoreModel('Categories', 'categories');
$registry->createAndStoreModel('Authors', 'authors');
$registry->createAndStoreModel('Basket', 'basket');
$registry->createAndStoreModel('User', 'user');
$registry->createAndStoreModel('Account', 'account');
$registry->createAndStoreModel('Rating', 'rating');
$registry->createAndStoreModel('Review', 'review');
$registry->createAndStoreModel('Checkout', 'checkout');
$registry->createAndStoreModel('UploadFiles', 'upload');
$registry->getObject('url')->getURLData();
$registry->storeSetting('default', 'view');
$registry->storeSetting('template', 'template');
$registry->storeSetting('authentication', 'authenticate');