Hi, Today is my first start with symfony (I've worked with Zend on the past and on some homemade little mvc frameworks).
I wanted to experiment symfony 1.4, Doctrine 2 & MongoDB odm for my next project. What did I do? - Cloned from github sf1.4 - created my project via ./symfony project:generate - Cloned ( git://github.com/doctrine/dbal.git in the *project*/lib/ vendor/doctrine2_dbal directory - Cloned git://github.com/doctrine/doctrine2.git in the *project*/lib/ vendor/doctrine2_orm directory - Cloned git://github.com/doctrine/mongodb-odm.git in the *project*/ lib/vendor/mongodb_odm directory - Cloned "sfDoctrine2Plugin" in /plugin/sfDoctrine2Plugin I've followed this tutorial http://blog.servergrove.com/2010/04/28/mongodb-with-php-and-symfony/ so my config/ProjectConfiguration.class.php looks like this: " require_once __DIR__.'/../lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); require __DIR__.'/../plugins/sfDoctrine2Plugin/lib/vendor/doctrine/ Doctrine/Common/ClassLoader.php'; use Doctrine\Common\ClassLoader , Doctrine\ODM\MongoDB\EntityManager; class ProjectConfiguration extends sfProjectConfiguration { public function setup() { $classLoader = new ClassLoader('Doctrine\ODM', __DIR__ . '/../ lib/vendor/mongodb_odm/lib'); $classLoader->register(); $classLoader = new ClassLoader('Doctrine\ODM', __DIR__ . '/../lib/ vendor/doctrine2_orm/lib'); $classLoader->register(); $classLoader = new ClassLoader('Entities', __DIR__.'/../lib'); $classLoader->register(); } }" And my databases.yml looks like this: "dev: doctrine: class: sfDoctrineDatabase param: username: password: prod: doctrine: class: sfDoctrineDatabase param: username: password: " My questions: * How can I configure MongoDB in my databases.yml ? * Is my ProjectConfiguration.class.php alright ? Thanks a lot ! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] 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
