Symfony2 is an open source PHP web development framework for PHP 5.3.3+ focusing on easy and fast development cycles and including state-of-the-art design patterns and programming philosophies.

learn more… | top users | synonyms (1)

0
votes
1answer
10 views

ErrorException: Warning: Header may not contain more than a single header, new line detected

I am having trouble redirecting after a certain function that sends emails! My function is: public function emailAction($emails, $url) { foreach($emails as $email) { $message = ...
0
votes
1answer
6 views

Compare data after form request , embedded forms

I have a multiple embedded Form. My first form holds a collection of Articles: $builder->add('purchaseOrders', 'collection', array('type' => new AmountOrderArticleType())); And this form ...
1
vote
0answers
8 views

symfony validation form doesn't call

I'm making a website with symfony2, and i have some troubles with form validaiton. It seems like method "isValid()" on my form is never called : heres is my form creation : public function ...
0
votes
1answer
11 views

The requested PHP extension intl is missing from your system (SonataAdminBundle) in Symfony2

I try to install the sandbox but i become the follow error from the composer: Loading composer repositories with package information Installing dependencies from lock file Your requirements could ...
0
votes
0answers
8 views

How to get group from user in SonataUserBundle?

I'm using symfony 2.2.3 and sonata admin in dev-master. I would like a custom field to show users from a specific group. I've not found how to make the relation with Sonata User entity and Sonata ...
1
vote
1answer
10 views

symfony 2.3 : how to translation dropdown text

Is there a way through which I can translate the contents of the choice type (drop down). the value of the content will be the same but the text in option should be translated.
0
votes
1answer
14 views

Add array of options as checkbox list to Symfony 2 forms

I want to do something really simple (theoretically ;-)): select a list of options from the database show a checkbox for each of the options do something for each selected options I am using ...
3
votes
1answer
19 views

Symfony external library - Payone

Has anybody ever used Symfony in conjunction with payone(payone.de)? I got the SDK and it has the folders js, locale and php. My problem: I don't really know how to include/use them in my ...
0
votes
2answers
12 views

Not only global errors but all errors in Twig (Symfony2)

I've got this in my form theme: {% block form_errors %} {% spaceless %} {% if errors|length > 0 %} <ul> {% for error in errors %} <li>{{ ...
0
votes
0answers
15 views

Symfony2 choiceList

CounterParty from / to: something is mapped correctly, City work short names must be written in square brackets ("something", "[City]") inside XML. We have this two fields inside our application - ...
0
votes
0answers
15 views

swiftmailer Swift_TransportException gets uncaught by try-catch block

For a project (which is about estate properties) i have included a contact form where a visitor can contact an estate broker if the visitor is interested to buy/hire an estate property. I am using ...
0
votes
1answer
28 views

Doctrine Entities and traits. Right way

I have a Comment entity (for user comments) and I want to add a new feature (Commentable) in my old entities. I created a trait Commentable: trait Commentable { /** * List of comments * ...
0
votes
1answer
11 views

Can i modify a get method of an entity?

To customize a GetName method of my entity User, can I do this directly in mu entity or I have to go through a custom method in my repository? I just want to return the name preceded by a dash...
0
votes
0answers
12 views

Javascript Graphical Relations Symfony2

I have two entities in my symfony2 system, which are related in a 1:1 relationship, with null posible. What I want is a kind of graphical editor to "drag-and-drop" or "draw" these connections ...
0
votes
1answer
10 views

Silex optional parameter for all urls

my question is quite simple, but I could not find an answer on google. In my silex project I have a parameter that can be or not on my url, e.g.: domain.com/?foo=1 When I use the method before it ...

1 2 3 4 5 775
15 30 50 per page