Re: [symfony-users] sf 1.4 Propel 1.5 - concrete inheritance

2011-04-14 Thread Gareth McCumskey
Create the table female first On Thu, Apr 14, 2011 at 4:24 AM, Julian wrote: > Hi > > i have a problem with a table and concrete inheritance, example: > > >autoIncrement="true" /> >primaryString="true" /> >primaryString="true" /> > > > > > > > > > > > > >

[symfony-users] Re: Problem with authentication on cluster

2011-04-14 Thread smontes
I am using the sandbox of the PR8. I happen the same issue when I use entities on the authentication. the problem (as someone told me) could be related with the property username, because it is sometimes null. But sorry, I did not find the solution. If I find it I will tell you. -- If you want t

[symfony-users] [symfony2]invalid csrf

2011-04-14 Thread samuel
hello, I'm trying to make my first form and I have some trouble with the csrf. I've seen previous discussion on this subject but no one solve them. here is my code : //Entity with annotations class TestEntity { /** * @validation:MaxLength(160) * @validation:NotBlank */ publ

Re: [symfony-users] [symfony2]invalid csrf

2011-04-14 Thread Gareth McCumskey
Make sure you render the hidden fields too On Thu, Apr 14, 2011 at 2:27 PM, samuel wrote: > hello, > I'm trying to make my first form and I have some trouble with the csrf. > I've seen previous discussion on this subject but no one solve them. > > here is my code : > > //Entity with annotations

Re : Re: [symfony-users] [symfony2]invalid csrf

2011-04-14 Thread sam
I have one hidden field : -- 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 symfony-users@googlegro

Re: Re : Re: [symfony-users] [symfony2]invalid csrf

2011-04-14 Thread Gareth McCumskey
The csrf field is also a hidden field On Thu, Apr 14, 2011 at 2:38 PM, sam wrote: > I have one hidden field : > > value="db845c8ea6164b93205d08977fd583139c5c" /> > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You rec

Re : Re: [symfony-users] [symfony2]invalid csrf

2011-04-14 Thread sam
@GarethMc : Yes it is but isn't this one ? And if I use {{form_field(form)}} in a twig template I have got all the fiels hidden or not. Anyway I try with {{form_hidden(form)}} and I get the same hidden field and only this one. -- If you want to report a vulnerability issue on symfony, please se

[symfony-users] Re: Use an EntityRepositoty in the service container

2011-04-14 Thread ericclemmons
You can use the existing DIC to handle this: // DefaultController.php $this->get('doctrine.org.entity_manager') ->getRepsository('MyBundle:User') ->findByName('Cedric'); // or turn it into a private method in the controller protected function getRepository($name) { re

[symfony-users] How to use the method getPartial in my worker? sfGearmanPlugin

2011-04-14 Thread Nei Rauni Santos
Hi, I found the sfGearmanPlugin very useful and I'm trying to use it, but I don't know how to use my swift code to send it in workers. I'm using sf 1.3 and today I have this code in my actions to send emails: $this->getLogger()->debug( "SEND TO CUSTOMER "); $email = new emailImmediateRes

[symfony-users] Re: problem displaying a uploaded image

2011-04-14 Thread Gabriel Petchesi
I think that the main problem is that the resource is not in the right path or it's a webserver misconfiguration. For static resources there is a rule in the .htaccess distributed with symfony to not process paths that have a dot in them: http://svn.symfony-project.com/branches/1.4/lib/task/gene

[symfony-users] Re: How to use the method getPartial in my worker? sfGearmanPlugin

2011-04-14 Thread Nei Rauni Santos
It works with this code: try{ $worker->notifyEventJob($job); $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', false); sfContext::createInstance($configuration); $configuration->loadHelpers('Partial'); $inquiry = Doctrine::getTa

[symfony-users] Re: Disable view for certain actions

2011-04-14 Thread coviex
Always wanted to say thank you (and not to flood) to all you guys who helped me with answers. So, thank you Gareth. On Apr 13, 1:56 pm, Gareth McCumskey wrote: > return sfView::NONE; > > > > On Wed, Apr 13, 2011 at 12:39 PM, coviex wrote: > > Hi, > > > In the project which I work on currently th

[symfony-users] Re: ajax in symfony 2

2011-04-14 Thread Marc MacLeod
In your controller: public function fooAction() { // Is this an ajax request? if ($this->container->get('request')->isXmlHttpRequest()) { // do stuff and return ajax content } // return normal response } On Apr 13, 5:16 am, symfonyM

[symfony-users] Symfony2 ACL Performance Question

2011-04-14 Thread Marc MacLeod
Hi all, I'm not sure I understand how to effectively use the ACL system. Say, for example, I have a list of user submitted posts. When a user views the list, for each post in the list I would use the ACL system to determine if the user has the right to edit the post. If they do, I show the edit bu

Re: [symfony-users] Symfony2 ACL Performance Question

2011-04-14 Thread Tim Nagel
I'm working on editing and deletion functionality for CommentBundle at the moment. I expect to have something committed by the end of the weekend. t On Fri, Apr 15, 2011 at 03:53, Marc MacLeod wrote: > Hi all, > > I'm not sure I understand how to effectively use the ACL system. Say, > for exa

Re: [symfony-users] Re: ajax in symfony 2

2011-04-14 Thread oscar balladares
With JQuery you can request Marc's controller's route. That should do the trick. 2011/4/14 Marc MacLeod > In your controller: > >public function fooAction() >{ >// Is this an ajax request? >if ($this->container->get('request')->isXmlHttpRequest()) >{ >

Re: [symfony-users] Re: ajax in symfony 2

2011-04-14 Thread oscar balladares
The controller should return a template response, a common template (without inheritance of course) 2011/4/14 oscar balladares > With JQuery you can request Marc's controller's route. That should do the > trick. > > > 2011/4/14 Marc MacLeod > >> In your controller: >> >>public function fooA

Re: [symfony-users] __check_login controller should return a response

2011-04-14 Thread oscar balladares
Hi. What about if you show us your code? Magic would be if we could help you out without one line of your code. [?] 2011/4/11 Yasmany Cubela Medina > hi, i read every day all mesages in this mail list search for a solution to > this error, many have the same problem and find the solution in on