root/trunk/batch/load_data.php

Revision 6, 0.5 kB (checked in by francois, 3 years ago)

fixed wrong application name in load_data batch

  • 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',         'snippets');
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 // initialize database manager
11 $databaseManager = new sfDatabaseManager();
12 $databaseManager->initialize();
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.