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
11 views

Auto starting session in Symfony2

It seems Symfony 2.1 does not auto start sessions. Is there a way for me to auto start them? I have an application that requires user's session id in several actions, but there is no way to know ...
0
votes
1answer
6 views

Symfony2 not picking up multiple routing yml files / Import not working in yml file

So first off TL:DR - Symfony isn't picking up additional routing files in my bundle. Don't know why. Tried doing imports like in config.yml and it's not working either I have multiple controllers for ...
0
votes
0answers
13 views

Why is symfony2 functional test client->request() not getting successful response()?

So I've decided to delve into phpunit testing and I've shamefully written out my php code before writing my test. Anyway, I'm just writing a very simple test that tells me if I actually found the ...
1
vote
0answers
14 views

Symfony2 forms using FormBuilder: how to set fields from controller

I want to create a form containing multiple forms using FormBuilder, each form corresponding to an entity. My problem is that I want to set some fields of the underlying forms from my controller. The ...
0
votes
1answer
8 views

Error trying to select a form from symfony2 crawler?

I keep getting the following error: There was 1 error: 1) Caremonk\MainSiteBundle\Tests\Controller\SecurityControllerFunctionalTest::testIndex InvalidArgumentException: The current node list is ...
0
votes
0answers
9 views

Symfony2 intl only “en” supported

I am working on windows machine with Wamp installed and PHP 5.4.3 Currently, I am developing a web application using Symfony2. While creating a form with the FormType, I needed to insert an inputfield ...
0
votes
0answers
6 views

Symfony 2 DoctrineBehaviors translatable how to avoid thousands of query by joining the translation table

I am using the Translatable trait from KnpLabs/DoctrineBehaviors with the "proxy translations" for my Category entity, so I have a CategoryTranslation entity containing the property "name", when I ...
0
votes
0answers
12 views

redirect sending variables symfony

I'm new to Symfony (working on my first project!) and I want to send the user back to the login page with an error saying "You aren't logged in" in case they aren't. Is there any way to run something ...
0
votes
0answers
18 views

Symfony2 rewrite user after send the file

Hello I'm a newbie in Symfony2. The problem is with users. After downloading the file from the server, the user's session is overwritten by new data of another user from the database. Prior to ...
0
votes
1answer
15 views

how to pass the form data to confirmation then to result page

I am planning to make input form,structures are like this below. input page -> comfirmation page -> resultpage 1)input page user input data ex) $userData = new UserData(); $form = ...
0
votes
0answers
12 views

Object identity is already associated with an acl

i try to create 3 functions for the ACL Management. public function postPersist(LifeCycleEventArgs $event){ $em = $event->getEntity(); $entity = $event->getEntity(); $aclProvider = ...
0
votes
0answers
13 views

Symfony2 - POST string data of 1334 characters and more returns an error

I have a form that is sending some data. Strangely, if the string in the hidden input field is longer than 1333 characters, the page takes a long time to load and returns this error: ...
0
votes
0answers
12 views

Symfony2, Backbone and Pushstate

I use symfony2 routing.yml for call main page: web_homepage: pattern: / defaults: { _controller: SWebBundle:Default:index } In this page i call Require, Backbone, use PushState, all ok, ...
0
votes
1answer
35 views

Cannot send a string longer than 1333 characters by POST without the page timing out

I have a problem sending an input hidden field containing more that 1333 characters. If the string contains more than 1333 characters, then when I try to send the form via POST, the page times out. Is ...
0
votes
2answers
22 views

Secure downloads without authentication

I would like to create temporary links to prevent direct download of files. The flow should be this: user purchase the file, indicating only the email address -> sends an email to that address with ...

1 2 3 4 5 769
15 30 50 per page