Skip to content

Instantly share code, notes, and snippets.

@trivoallan
Created August 4, 2010 10:02
Show Gist options
  • Save trivoallan/507921 to your computer and use it in GitHub Desktop.
Save trivoallan/507921 to your computer and use it in GitHub Desktop.
<?php
require_once('/usr/share/php/symfony/autoload/sfCoreAutoload.class.php');
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration {}
class MyAppConfiguration extends sfApplicationConfiguration {}
$configCache = new sfConfigCache(new MyAppConfiguration('dev', true, dirname(__FILE__)));
$configCache->clear();
<?php
require_once('/usr/share/php/symfony/autoload/sfCoreAutoload.class.php');
sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration {}
class MyAppConfiguration extends sfApplicationConfiguration {}
$configCache = new sfConfigCache(new MyAppConfiguration('dev', true, dirname(__FILE__)));
$configCache->import('config/somefile.yml');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment