Questions tagged [symfony-2.3]

This is the Symfony 2.3.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.3.x — not just 2.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 2.3 version of Symfony, which was released on the 3 June 2013 as the first LTS version of Symfony. See the tag for general Symfony 2.x questions.

As of 11 June 2013, the latest stable release of Symfony 2.3 is version 2.3.1.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

Useful links

771 questions
3
votes
1 answer

Install symfony2 on nginx not load css

I have a problem, I want to install symfony2 on nginx, the framework is installed but is not loaded css,js,img. So I view only the home page without style. My installation : server { listen 80; server_name symfony.dev; root…
Harea Costea
  • 275
  • 5
  • 19
3
votes
3 answers

Symfony CRUD generator with Bootstrap 3 support?

In my job they're already using a modified Bootstrap template and it's working fine for everything in Symfony2 but I would like the CRUD's generated by Symfony2 to have Bootstrap 3 structure so it gets styled by it. Currently I've…
Vladimir Hidalgo
  • 579
  • 2
  • 8
  • 22
3
votes
1 answer

No cache for specific Symfony2 TWIG page

i want to disable a [twig] cache for an specific Action response on Symfony2? Is a solution to do this. I'm not sure if I will add on response next header response will be not cached 'Cache-Control: no-cache, no-store, must-revalidate' ??
dmitri
  • 460
  • 5
  • 11
3
votes
2 answers

How to inject specific values to session on symfony2 on login?

I was implementing a login system in symfony2 which includes security.xml configuration and some custom stuffs... At successful login the symfony sends user to a specific controller where i wrote few codes to populate some additional data to…
3
votes
1 answer

How to validate array items in Symfony 2.3?

I use Symfony v2.3.x and I have a validation file that looks something like this: Namespace\To\MyEntity: properties: entityCollection: - Type: { groups: [mygroup], type: array } - All: …
Radu Murzea
  • 10,724
  • 10
  • 47
  • 69
3
votes
2 answers

Payum Bundle : How to change the view of capture action in symfony2

I am using PAYUM Bundle for the payment gateway integration, and its basic example is working fine, But now I want integrate the payum bundle in application by changing the payum capture action layout and adding extra field payment detail…
amit
  • 63
  • 8
3
votes
2 answers

Symfony2 : How to change hidden field value on PRE_SUBMIT

This is how the hidden value is added in the $formBuilder : ->add('depth', 'hidden', array('mapped'=>false, 'data' => 1)) I have a function that is fired ON_PRE_SUBMIT, at the line below I assumed this field's value would change but that is not the…
stevenll
  • 1,025
  • 12
  • 29
3
votes
0 answers

Table view OR temporary table in Doctrine + symfony 2.3

I was trying to implement bayesian average logic in doctrine and symfony. I have basic native Mysql query like this: Create View `ratings` AS SELECT restaurant_id, (SELECT count(restaurant_id) FROM ratings) / (SELECT count(DISTINCT…
stefun
  • 1,261
  • 3
  • 24
  • 54
3
votes
2 answers

Symfony2 custom form type key pair

I'm currently trying to implement a key-pair value for a form type, which is used together with the FOSRestBundle to allow for sending a request like the following: { "user": { "username": "some_user", "custom_fields": { …
GManz
  • 1,548
  • 2
  • 21
  • 42
3
votes
1 answer

symfony2 emulate multiple submit buttons with ajax

there is this new feature of 2.3 with multiple submit buttons but I'm sending my form with ajax $.post("{{ path('order_ad_banner') }}", $('#adOrderForm').serialize() + "&" + $.param({url: "{{ url }}"}), function (data) { …
jeff
  • 1,169
  • 1
  • 19
  • 44
3
votes
2 answers

Symfony 2 form cascading validation

I have a form in symfony 2 like: $form = $this->createFormBuilder(); $form ->add('subscription', 'entity', array( 'class' => 'AcmeDemoBundle:Subscription', 'property' => 'name', …
jribeiro
  • 3,387
  • 8
  • 43
  • 70
3
votes
1 answer

Failed to start the session because headers have already been sent by "" at line 0. at n/a

I'm trying to start working in a new (Windows 8) laptop in an existing project that works fine in my previous (Mac OS X) machine and in all the (Linux) servers it's been deployed to. I've cloned from git, run the composer, app/console works fine,…
davidvelilla
  • 488
  • 5
  • 18
3
votes
1 answer

Sonata Admin: Want to create global configuration page

I need to create signle global configuration page without list view, just single page with number of inputs like: fb page link google analytics id some default front-end texts checkbox options: show intro, show social media etc. something that…
ShachMaT
  • 33
  • 6
3
votes
1 answer

Form with DataTime field split into two fields

I want to split a DateTime field into two fields (date and time) using Symfony 2.3. Therefore I tried to adapt the Symfony 2.0 solution found here and made the necessary changes for Symfony 2.3. the new type: class MyDateTimeType extends…
Stefan Bergfeld
  • 113
  • 2
  • 9
3
votes
1 answer

Symfony Security: Auth with session or oauth

I have developed a REST API, there are two ways to connect to it: session and oauth. Basically, my website will use the session mode and third-party softwares will use the oauth mode. I managed to make make both session and oauth modes to work in…
Benjamin Leclerc
  • 162
  • 1
  • 14