👁 查看:functional.php
路径:/virtual/bigbrother/sns/test/bootstrap/functional.php
大小:969 B · 修改:2010-08-10 13:59:42 · 权限:0644 · 可写
<?php

/*
 * This file is part of the symfony package.
 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

// guess current application
if (!isset($app))
{
  $traces = debug_backtrace();
  $caller = $traces[0];

  $dirPieces = explode(DIRECTORY_SEPARATOR, dirname($caller['file']));
  $app = array_pop($dirPieces);
}

require_once dirname(__FILE__).'/../../config/ProjectConfiguration.class.php';
$configuration = ProjectConfiguration::getApplicationConfiguration($app, 'test', isset($debug) ? $debug : true);
sfContext::createInstance($configuration);

if (!isset($executeLoader) || $executeLoader)
{
  $loader = new sfPropelData();
  $loader->setDeleteCurrentData(true);
  $loader->loadData(dirname(__FILE__).'/../fixtures');
}

// remove all cache
sfToolkit::clearDirectory(sfConfig::get('sf_app_cache_dir'));
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ