Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
- if (strpos($_SERVER['SERVER_NAME'], 'admin.') === 0) {
- $app = 'backend';
- } else {
- $app = 'frontend';
- }
- if (substr($_SERVER['SERVER_NAME'], -3) == 'dev') {
- $env = 'dev';
- $debug = true;
- } else {
- $env = 'prod';
- $debug = false;
- }
- $configuration = ProjectConfiguration::getApplicationConfiguration($app, $env, $debug);
- sfContext::createInstance($configuration)->dispatch();
Add Comment
Please, Sign In to add comment