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 symfony2 tag for general Symfony 2.x questions.
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…
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…
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(
…
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?
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'
…
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"…
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…
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
{%…
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…
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…
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…
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…
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?
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…