[symfony-users] Varnish with ESI and Symfony2 Beta1

2011-04-30 Thread Matt Drollette
I was able to get ESI's to work with the built in Symfony reverse proxy. But then i switched to Varnish and they weren't behaving the same. I can make ESI work correctly if I manually put the esi:include in the template. But if i use: {% render '...:news' with {}, {'standalone': true} %} Then

Re: [symfony-users] Re: [symfony2] parameters.ini

2011-04-30 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 no, config_prod.yml (and _test, _dev) are for different situations of your application. _dev makes the developper toolbar show, and if you use assetic, compiles assets on the fly each time you access them... those config files still live in git and

[symfony-users] [Symfony2] Embedded forms and validation

2011-04-30 Thread Carl
Hello, I've been attempting to add a ReCAPTCHA to a user registration form (I'm using FOSUserBundle to manage users/logins) and while everything seems to work fine, I can't get Symfony2 to call the custom validator associated with the ReCAPTCHA. I'm using EWZRecaptchaBundle render and validate

[symfony-users] Symfony2 Entity {myEntity} is missing an assigned ID

2011-04-30 Thread JumpingJack
I have a problem with Symfony2 (beta1). I use FixtureLoader.php. When I try to generate a new instance of one of my entities i get the error Message Entity {myEntity} is missing an assigned ID . The entity has an ID as the other entities that I use. All other istances work without problems.

Re: [symfony-users] Doctrine:generate:entities

2011-04-30 Thread A A
You should determine entity by finding it first ($entity = $entityManager-findOneById($id)), then set other fields to update. You can't set it an id and then save(update) it. 2011/4/30 sergio sergio.pe...@albatronic.com Regarding doctrine:generate:entities... I wonder why it don't generate the

[symfony-users] Re: [symfony2] parameters.ini

2011-04-30 Thread robjensen82
An interesting way of looking at it. On Apr 30, 8:37 am, David Buchmann david.buchm...@liip.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 no, config_prod.yml (and _test, _dev) are for different situations of your application. _dev makes the developper toolbar show, and if you use

[symfony-users] Doctrine:generate:entities

2011-04-30 Thread Sergio Perez
Hello, I have the follow problem: When I try doctrine:generate:entities AplicationNameBundle I get twice a PHP Fatal error: Call to a member function getShortName() on a non-object in Symfony\...\GenerateEntitiesDoctrineCommand.php on line 63 Before do that I’ve generated my schema

Re: [symfony-users] Error when adding new data - really really stucked with this one...

2011-04-30 Thread JP
Thanks for the awnser. I modified the generator.yml and the form. I'm sending the two of them. Thanks in advance. Generator.yml: *generator: class: sfDoctrineGenerator param: model_class: Patient theme: admin non_verbose_templates: true with_show:

[symfony-users] [Symfony2][PR12] Route _internal does not exist

2011-04-30 Thread Nebula
getting exception InvalidArgumentException: Route _internal does not exist. (uncaught exception) only when using ESI: AppCache with $view['actions']-render('bundle:controller:action', array(), array('standalone' = 'true')) -- If you want to report a vulnerability issue on symfony, please send it

[symfony-users] Re : Re: EWZRecaptchaBundle

2011-04-30 Thread symfonyMan
hello, i still have no validation for the Recaptcha field !! there is no solution for that ? thanks -- 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

[symfony-users] Re: Locale in URL's site-wide

2011-04-30 Thread robjensen82
Hi Chris, I'm dealing with the same issue at the moment, regarding your routing issue. This is worth a look: https://github.com/BeSimple/I18nRoutingBundle Not going to stop you having to put $_locale in all your controllers, but seems pretty nice for having a single route for multiple languages.

[symfony-users] Re : Re: EWZRecaptchaBundle

2011-04-30 Thread Carl
I'm having the same issue. I'm going to be contacting the author about it again. I can't get the inValid() function to be called when submitting a form. Custom validation definitely works as it's working in other bundles. -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Translating form labels in custom domain don't work

2011-04-30 Thread umpirsky
I wanted to translate form labels, but to have them in forms translation domain, not in default messages domain as expected by field_label.html.php so I customized it with: {% block field_label %} label for={{ id }}{% trans from forms %}%label%:{% endtrans %}/ label {% endblock field_label %}

Re: [symfony-users] Translating form labels in custom domain don't work

2011-04-30 Thread Саша Стаменковић
Ah, my bad. I wanted to translate variable like: {% block field_label %} label for={{ id }}{% trans from forms %}{{ label }}:{% endtrans %}/label {% endblock field_label %} but it throws A message must be a simple text I need twig analogie for: label for=?php echo $view-escape($id) ??php

[symfony-users] Re: [Symfony2][PR12] Route _internal does not exist

2011-04-30 Thread Matt Drollette
Described here http://symfony.com/doc/2.0/book/http_cache.html#using-esi-in-symfony2 You need to load this in your routing: _internal: resource: @FrameworkBundle/Resources/config/routing/internal.xml prefix: /_internal -- If you want to report a vulnerability issue on symfony,

[symfony-users] [sf2] Beta1 Fatal Error after updated

2011-04-30 Thread winzou
Hi there, I've updated sf2 from PR10 to beta1, and got this error : *Catchable fatal error*: Argument 1 passed to appdevUrlMatcher::__construct() must be an instance of Symfony\Component\Routing\RequestContext, array given, called in

[symfony-users] [sf2] Beta1 Fatal Error after updated

2011-04-30 Thread winzou
Hi there, I've updated sf2 from PR10 to beta1, and got this error : *Catchable fatal error*: Argument 1 passed to appdevUrlMatcher::__construct() must be an instance of Symfony\Component\Routing\RequestContext, array given, called in

[symfony-users] doctrine:generate:repositories

2011-04-30 Thread Sergio Perez
Hi everybody, After import (doctrine:mapping:import) from a existing database, I try to create the repositories with app/console doctrine:generate:repositories MyBundle and I get “SKIP no custom repository for MyBundle\Entity\entityname What does it means? What am I doing wrong?

[symfony-users] Re: Re : Re: EWZRecaptchaBundle

2011-04-30 Thread Carl
I've forked this bundle and made some changes to it in order to get it to work: https://github.com/NeuralClone/EWZRecaptchaBundle Make sure to look at the new README that explains how to use it with the changes I made. I don't think I missed anything but this was a pretty quick patch and

Re: [symfony-users] doctrine:generate:repositories

2011-04-30 Thread Fabien Potencier
On 4/30/11 9:25 PM, Sergio Perez wrote: Hi everybody, After import (doctrine:mapping:import) from a existing database, I try to create the repositories with app/console doctrine:generate:repositories MyBundle and I get “SKIP no custom repository for MyBundle\Entity\entityname What does it

RE: [symfony-users] doctrine:generate:repositories

2011-04-30 Thread Sergio Perez
Sorry, but I think I didn´t explained well. app/console doctrine:mapping:import MyBundle yml works fine, but when I try app/console doctrine:generate:entities MyBundle I get: [RuntimeException] Something went terribly wrong. And no entity created. Thanks in advance and congratulations for your

[symfony-users] Re: Re : Re: EWZRecaptchaBundle

2011-04-30 Thread Michael
Hi guy, this is really weird why it's not working for you.. the updated README got all the last changes and it works fine. As for the changes Carl propose to make, a different approach to loading the RecaptchType. But it is unnecessary as it already been loaded in the recaptcha.xml:

[symfony-users] Re: Re : Re: EWZRecaptchaBundle

2011-04-30 Thread Carl
I agree that my method should be unnecessary. It seems redundant. But it's the only way I've been able to get validation to trigger for this and I've been trying for the past week to get it working. I'm still working on getting it to work using the default bundle settings. For now though, my