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
0
votes
1 answer

why does saving sessions in symfony2 delete my attributes?

This question is exactly as specified as above. I have code that looks like this: // These attributes are getting deleted for some reason $this->session->set('userProfiles',new ArrayCollection($uniqueList)); // Get array filter and save it in…
Dr.Knowitall
  • 10,080
  • 23
  • 82
  • 133
0
votes
1 answer

Get values from Media entity using Product entity and Many To Many relationship between tables

I have three entities: product, media and product_has_media which is the result of a n:m relation. This are the entities for each: Product.php namespace ProductBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Symfony 2.3.3 Embedding Controller

Im trying to embed a controller inside a twig template. Its documented here: http://symfony.com/doc/current/quick_tour/the_view.html and have read various questions on stackoverflow about it like this one: How to insert a Controller in Twig with…
azzy81
  • 2,261
  • 2
  • 26
  • 37
0
votes
3 answers

How to use collections in Symfony2 with OneToMany and ManyToOne relationships?

I have a database with Contacts (Contact entity), Contacts' relatives (ContactRelative entity) and various occasions (AnniBirth entity). What I am firstly trying to do is to persist a Contact with its details in the Contact entity. Secondly, I enter…
Radolino
  • 1,834
  • 4
  • 26
  • 48
0
votes
1 answer

blank json array in symfony2

i am writing webservice in symfony2 but i facing some problem regarding the output ,as it is giving blank output. class DefaultController extends Controller { /** * * @Route("/webservices/activity/{id}", name="user_json_activity") *…
Krishna Ghodke
  • 589
  • 2
  • 6
  • 26
0
votes
2 answers
0
votes
1 answer

Handling duplicates in Twig templates

I have this code in my Twig template: {% for entity in entities %}
0
votes
1 answer

FOSFacebookBundle & FOSUserBundle for differents users in front & back

I want to use the FOSFacebookBundle with the FOSUserBundle to manage: a front with facebook connect a backoffice for admin users with a classic login/password (no facebook connect here!) I'm using Propel as ORM and the…
Lionel
  • 387
  • 3
  • 18
0
votes
0 answers

Symfony 2 Quiz style

I want to make a quiz(really simple one) for my student. I have 2 entity one question and one answer with a relation onetomany frome answer entity. I want to be able to write the questions for a tex X and put all of them in a page with a field…
0
votes
1 answer

Set variable in loop

I'm trying to create a json object on twig, so I need to set a variable inside a loop. After many attempts I found this way, but it's fine when I only have two records, if I have any more you generate the problem: {% set data = [] %} {% for artist…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
1 answer

Symfony 2 security - not having secured area under a prefix

Using Symfony 2 it's possible to create secured areas under a specific URL prefix. For example you could have a members area located under a 'members' prefix like…
jd182
  • 3,180
  • 6
  • 21
  • 30
0
votes
1 answer

Using Symfony2 with HTTPS on localhost

I'm stuck with this issue for quite a while now. I checked this page and Google, but couldn't find anything. Maybe I'm just looking for the wrong key words. I installed a self signed SSL Certificate into my localhost. That works fine, my browser…
Basti909851
  • 127
  • 8
0
votes
1 answer

Symfony Form: Displaying mutliple values in a select field

Im trying to create a list of select fields of my entity with multiple displayed values to each select. I tried it with the entity type, but there is only the toString value displayed. But i want to display the name, description, price and an…
Flow
  • 402
  • 6
  • 16
0
votes
2 answers

The controller must return a response, action is never executed

I have this code in my controller: /** * Displays a form to create a new Bank Account * * @Route("/account/new", name="wba_new") * @Method("GET") * @Template("BankBundle:BankAccount:new.html.twig") */ public function newBankAccountAction() { …
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Symfony2 include js files via loop from assetic.yml

assets.yml: assetic: assets: base_js: inputs: - '%kernel.root_dir%/Resources/public/jquery-1.10.2.min.js' - '%kernel.root_dir%/Resources/public/bootstrap3/js/bootstrap.min.js' …
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601