Hi,
With Symfony 2, is it required to define a route for each controller
action ? Are we able to define a route like : "/foo/:action" with
indexAction as the default action ?
Thanks.
br,
Benjamin.
--
If you want to report a vulnerability issue on symfony, please send it to
security at s
Hi,
I try to use and understand the Translation component from Symfony 2.
I ran some tests and it seems that the fallback system doesn't work properly
(maybe it's my mistake).
I tried with the following configuration :
app.config:
translator:
enabled: true
fallback: en
Ok, i figured out that in fact the browser preferred languages are not
auto-detected :)
--
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.
Hi,
I'm trying desperately to use setter injection within a bundle.
I have a bundle named "NewsBundle" under src/Bundle/NewsBundle.
The NewsBundle adds an Extension to container like (simplified version) :
public function configLoad($config, ContainerBuilder $container)
{
$loade
Hi,
I would like to configure security layer from a specific Bundle, how can i
do that ?
I've naively tried to add the following line into app/config.yml :
security.config: ~
And then into my bundle extension :
public function configLoad($config, ContainerBuilder $container)
{
Hi,
I can see that some people get the classic error : "Can't connect to local
MySQL server through socket '/tmp/mysql.sock"
Most of the time, it comes from a Zend Server environment.
Here is how i was able to solve this :
Create a symlink from "/tmp/mysql.sock" to "/var/run/mysqld/mysqld.sock"
Hi,
I just can't find a way to achieve an use case with a modular project and
Twig. Maybe i'm missing something.
Let's consider a CMS context and a NewsBundle bundle ("module").
The user can create a page in his website structure, i.e : "News item page".
Then he can assign a layout (a presentat
Hi,
I try to use a custom validator, but i didn't found a way :)
First, i use xml for validation and I'm not sure how to add properly a
namespace in the config file.
I naively tried to do the same as for annotations or yml drivers:
validation:
enabled: true
annotations:
namespa
Thanks Stof.
I looked at the FOSUserBundle validators but in the validation.xml file, the
custom constraints are defined outside the properties, and the property is a
parameter of the validator.
I would like to attach my validator directly to the property just like any
other validator :
Hi,
I'm still stuck with that :/
Did anyone manage to make this work ?
Thanks,
*
--
Benjamin Dulau - anonymation CEO
anonymation.com | code.anonymation.com
ben...@anonymation.com
*
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
Y
Hi,
In Sf2, the system to override templates through a child bundle is great
because it naturally organizes the files in a logic way (and inside the src
directory).
But i wonder why the same mechanism is not applied to the translation files
? Or maybe i'm not using it well.
Take the FOSUserBun
Hi,
I saw a commit adding a way to specify the form constraint on the fly
: http://goo.gl/begfs
In the commit i see also a new attribute :
>setAttribute('validation_constraint', $options['validation_constraint'])
And that's what i'm interested in. My form Type is defined as a service, and
i wo
Hi Bernhard,
Thanks for your response.
Can i define form validation constraints from my XML file, when i'm defining
the service ?
???
*
--
Benjamin Dulau - anonymation CEO
anonymation.com | code.anonymation.com
ben...@a
Hi,
I'm testing the birthday Form Type, and even if my current locale is "en",
the widget shows days in French (system language).
Is this a bug or is there a way to localize the widget ?
Thanks.
*
--
Benjamin Dulau - anonymation CEO
anonymation.com | code.anonymation.com
ben...@anonymation.c
Hi,
I see that the password is not hydrated when retreiving user through
security context.
But when a provider fetches the user from a database, not having the
password forces the developper to execute an extra request just to be able
to save the user without a null password.
I know that's a
I've found why the password is erased.
That's the AuthenticationProviderManager which calls the eraseCredentials()
method or not on the User class just after authentication according to
the $eraseCredentials option passed to the constructor.
And in my eraseCredentials() implementation i was set
Hi,
I started to use Assetic and that's really a great tool !
However, i wonder how to deal with images referenced in some CSS files.
Take jQuery UI for instance, the bundle comes with a css file and an
"images" dir next to it. All images in the css are referenced by
'images/.'.
How to dea
Ok, i added the cssrewrite filter to my assets but i'm not sure how to use
it.
{% stylesheets filter='cssrewrite,?yui_css'
'@MvalSiteBundle/Resources/css/jquery/jquery-ui.css'
'@MvalSiteBundle/Resources/css/reset.css'
'@MvalSiteBundle/Resources/css/style.css'
%}
Hi,
I wonder how to deal with specific arrays and CollectionType field.
Suppose we have the following entity :
class Foo
{
/* @var array */
protected $socialLinks = array(
'linkedIn' => null,
'viadeo' => null,
'twitter' => null,
);
}
And the following fiel
In fact, that was easy :-)
$builder->add('socialLinks', new SocialLinksType());
SocialLinksType :
$builder
->add('linkedIn', 'text')
->add('viadeo', 'text')
->add('twitter', 'text');
Works like a charm !
Benjamin.
--
If you want to report a vulnerability issue on symfony, please
Hi,
I'm trying to handle multiple file uploads with a binded array.
// FilesType
$builder
->add('photo1', 'file', array(type' => 'file'))
->add('photo2', 'file', array('type' => 'file'))
->add('photo3', 'file', array('type' => 'file'))
;
// controller
$files = array(
'photo1' =>
21 matches
Mail list logo