Hi List,

NewBie question, if I install symfony using PEAR I get version 1.1.2
(Preferred)
But I run into trouble. example I cannot locate sfCore.class.php
(Needed in a load_data.php script)

If I follow the apt-get install php5-symfony path I get the older
version 1.0.17
Now there is a /usr/share/php5/symfony/lib/util/sfCore.class.php

Am I missing something? (Like another method to pre-load data?)

So far it is all pretty confusing with the different ENV and APPS (and
diff dir depending on what install method/version one used...)

Should there be a sfCore.class.php in version 1.1.2 ?
Can somebody post an example of a load_data.php script that works with
1.1.2?

Thanks

Peter


cat of my load_data.php
<?php

  define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/..'));
  define('SF_APP',         'backend');
  define('SF_ENVIRONMENT', 'dev');
  define('SF_DEBUG',       true);

 
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');

  // initialize database manager
  $databaseManager = new sfDatabaseManager();
  $databaseManager->initialize();

  $data = new sfPropelData();
  echo
sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'sql'.DIRECTORY_SEPARATOR.'fixtures.yml';
  $data-
>loadData(sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'sql'.DIRECTORY_SEPARATOR.'fixtures.yml');
?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to