root/trunk/batch/load_data.php

Revision 71, 485 bytes (checked in by fabien, 3 years ago)

upgrade to 0.6 (step 3)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/..'));
4 define('SF_APP',         'frontend');
5 define('SF_ENVIRONMENT', 'dev');
6 define('SF_DEBUG',       true);
7
8 require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
9
10 sfContext::getInstance();
11
12 SearchIndexPeer::doDeleteAll();
13
14 $data = new sfPropelData();
15 $data->loadData(sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'fixtures');
16
17 ?>
Note: See TracBrowser for help on using the browser.