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
-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
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
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.
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
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
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
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:
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
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
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.
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
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 %}
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
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,
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
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
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?
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
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
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
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:
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
23 matches
Mail list logo