[symfony-users] problem controller ODM

2011-04-03 Thread César Hernández
Good I'm trying to type a query SELECT FROM TABLE but MongoDB MDGs *this is** the controller file* container->get('doctrine.odm.mongodb.document_manager'); $Personas = $manager->find('MiPrimerNOSQL:Personas',''); // $Personas = $dm // ->createQuery(array('MiPrimerNOSQL:Persona

[symfony-users] [Symfony2] Return a 303 status (or any other) with RedirectResponse();

2011-04-03 Thread oscar balladares
Hi everybody [?] I'm working with Ajax. I have a html list with, for example 2 rows, and they can be removed via Ajax. If 1 row is removed, the Controller will return the updated list. And if the last row is removed, the Controller will return a RedirectResponse() to the homepage instead. The p

Re: [symfony-users] [Symfony2] Return a 303 status (or any other) with RedirectResponse();

2011-04-03 Thread Christophe COEVOET
Le 03/04/2011 20:09, oscar balladares a écrit : Hi everybody I'm working with Ajax. I have a html list with, for example 2 rows, and they can be removed via Ajax. If 1 row is removed, the Controller will return the updated list. And if the last row is removed, the Controller will return a R

Re: [symfony-users] [Symfony2] Return a 303 status (or any other) with RedirectResponse();

2011-04-03 Thread Jordi Boggiano
On 03.04.2011 20:17, Christophe COEVOET wrote: > Le 03/04/2011 20:09, oscar balladares a écrit : >> Hi everybody >> I'm working with Ajax. >> I have a html list with, for example 2 rows, and they can be removed >> via Ajax. >> >> If 1 row is removed, the Controller will return the updated list. >>

Re: [symfony-users] [Symfony2] Return a 303 status (or any other) with RedirectResponse();

2011-04-03 Thread oscar balladares
Thank you both very much.! 2011/4/3 Jordi Boggiano > On 03.04.2011 20:17, Christophe COEVOET wrote: > > Le 03/04/2011 20:09, oscar balladares a écrit : > >> Hi everybody > >> I'm working with Ajax. > >> I have a html list with, for example 2 rows, and they can be removed > >> via Ajax. > >> > >

[symfony-users] Symfony2 setup

2011-04-03 Thread Pau Peris
Hi, i'm about to start a symfony2 project so i've created my own project directory inside ~/myProject. I want to store symfony2 framework inside ~/myProject/symfony so i'm going to use git submodules for that. Then i would need to add some bundles to to have Doctrine ORM support,etc My question is

[symfony-users] Re: problem controller ODM

2011-04-03 Thread César Hernández
Using data-load loads three documents to the database MongoDB But I failed to list ... when I check in Symfony-profiler I get the following code Queries - use default; - db.Personas.find({ "_id": ObjectId("4d98e8519d87a2801100") }); I expected it to be db.Personas.find({ "nombre":

[symfony-users] Re: JSON default content type

2011-04-03 Thread Massimiliano Arione
Open config/view.yml file in your application. First 3 lines (excluding comments) are default: http_metas: content-type: text/html you got a clue ;-) cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You rec