Questions tagged [symfony-2.2]

This is the Symfony 2.2.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.2.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.2 version of Symfony, which has been released on the 1 March 2013. See the tag for general Symfony 2.x questions.

As of 19 June 2013, the latest stable release of Symfony 2.2 is version 2.2.3.

Living on the edge

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

Useful links

190 questions
2
votes
2 answers

Why are exceptions not caught when overriding error templates?

I've followed the Symfony2.2 documentation on customising error templates and overridden the default error template at app/Resources/TwigBundle/views/Exception/error.html.twig as described for Twig. In some controllers I am throwing a custom 404…
Tim
  • 8,036
  • 2
  • 36
  • 52
2
votes
1 answer

Convention-based routing in Symfony2

I'm trying to learn learn how routing works in Symfony2, and so far everything I've read has examples like this: blog: path: /blog/{page} defaults: { _controller: AcmeBlogBundle:Blog:index, page: 1 } This routes requests to /blog/123…
Josh
  • 7,232
  • 8
  • 48
  • 75
2
votes
2 answers

how to call function of entity repository in form type in symfony2

i want to call function in form type class. function generate array and is written in entity repository class. using that array i will generate dynamic form field. here is entity repository class function. public static $roleNameMap = array( …
Rajesh Vasani
  • 297
  • 4
  • 6
  • 14
2
votes
1 answer

FOSUserBundle 1.3.1 => 2.0

I'm using 1.3.1 version of FOSUserBundle. I has upgraded symfony to 2.2 and I'm not sure about 1.3.1 compatibility so I want to upgrade the bundle as well, but I can't find any instructions of what I have to do. Is there any manual or kind of?
ozahorulia
  • 9,798
  • 8
  • 48
  • 72
2
votes
2 answers

Symfony2 setting css media type (all, print,screen,handheld)

I think I look everywhere, but no success. I am learning Symfony2 so it is possible that I overlooked something. Here is how I load my css (it works fine): {% stylesheets filter='cssrewrite' '@MyHomeBundle/Resources/public/css/*.css' …
Pifon
  • 346
  • 3
  • 16
2
votes
0 answers

Validate a non-model attribute

Env: Symfony2.2 + Propel 1.6 I try to validate a 'customer' form which is linked to the model (Customer) to manage a "create account" (form 1) and a "login account" (form 2). The user is required to check the "I accept the terms of agreement"…
Lionel
  • 387
  • 3
  • 18
2
votes
1 answer

Something's eating my objects between twig and a sub-controller

OK, first of all a disclaimer. I'm working on my first Sf2 project and working through an existing sf1 project, refactoring it to Sf2 to gain an understanding of where all the drawers have been moved to. Now, something odd is happening and it has me…
caponica
  • 3,788
  • 4
  • 32
  • 48
2
votes
3 answers

how to overriding fosuserbundle registration form style

I want to use bootstrap style apply in fosuserbundle registration form.and the login cant overriding,but because of registration form use "{{ form_widget(form) }}",so I can't overriding it,I use symfony2.2,I also test use form theme,like this {%…
user1683012
  • 315
  • 1
  • 5
  • 14
2
votes
3 answers

Composer.phar update now results in an ErrorException for MonologBundle

symfony/symfony v2.2.0 monolog/monolog v1.4.1 After running composer.phar update yesterday, monolog was updated; running the same command today results in the following error message: Loading composer repositories with package information Updating…
The Rookie
  • 307
  • 4
  • 11
2
votes
1 answer

How to properly integrate a 3rd party library in a Symfony2 project

I am working on a Symfony 2.2 Project in which I need to upload video to Vimeo. I am using advanced Vimeo API via the Vimeo.php (official library of Vimeo) I managed to add a namespace to the library and added it to the entity folder in my bundle…
Ajeet Varma
  • 726
  • 4
  • 20
2
votes
4 answers

I'm trying to install Symfony 2.2 with Sonata Admin Bundle but I'm getting the following error from Composer:

Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package sonata-project/admin-bundle could not…
user2198773
  • 21
  • 1
  • 2
2
votes
2 answers

Symfony2 merge multi step form to one result

These are my first steps on SF2. I want to set up a multi step form on an entity which contains other entities. I've a form type (shortened) class ApplicationFormType extends AbstractType { protected $_step = 1; public function…
rabudde
  • 7,498
  • 6
  • 53
  • 91
2
votes
1 answer

Symfony2.2 render ESI template

From the documentation, there is no example of how to render a template inside template using ESI. Is it possible to do that? For example, I have a template index.html.php and I want to render form.html.php template with ESI. How to do that?
werd
  • 648
  • 4
  • 13
  • 23
2
votes
1 answer

routing trouble since upgrade sf2.0 to sf2.2

I made an upgrade of my SF version (2.0.18 to 2.2) and i have trouble with render routing on a twig template. Error message : An exception has been thrown during the rendering of a template ("No route found for "GET Security:login"") in…
Olivier
  • 63
  • 6
2
votes
0 answers

Symfony2 - assetic background images on subdomain

I have two bundles in Symfony 2.2 1. FrontBundle on…
patie
  • 1,074
  • 1
  • 10
  • 18