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

Creating LIs on the fly doesn't work as I want

I have a Symfony 2 function called via AJAX from the template. This is the function: /** * Get subcategories based on $parent_id parameter * * @Route("/category/subcategories/{parent_id}", ...
0
votes
0answers
6 views

How to forward to a named route?

How do I do forwarding a Symfony2 (2.2) class for which I do not know the name? Please note, I do NOT want to redirect, since I must POST and I would prefer the POST parameters not to be sent via the ...
0
votes
0answers
9 views

Doctrine2 Define properties via magic methods

Using Doctrine, is it possible to map to properties which don't actually exist using magic methods? I'm doing the mapping with YAML. For example, if I wanted to map to a property named "demo", but ...
-1
votes
0answers
12 views

What is OAuth? How do I implement it?

I must be missing something very obvious here. I understand that OAuth allows authentication to a large range of social network / API services (similar to authorising against a Facebook app). I ...
0
votes
0answers
7 views

Symfony2: deprecated get in FormView replacement?

In versions < 2.3, the attribute data-prototype="{% filter escape %}{% include 'ManaClientBundle:Member:member_prototype.html.twig' with {'form': form.members.get('prototype')} %}{% endfilter %}" ...
0
votes
0answers
5 views

Injecting services into HWIOAuth ResourceOwner subclasses

I am looking to run my webapp on several domains and would like my Symfony app to read different client_id/client_secret values out of my database based on the domain that the visitor is accessing the ...
0
votes
0answers
13 views

Complex Symfony2 Form Builder

I have an application where a game is played on a tablet device and if score is high enough it does an ajax post passing the score to a Symfony2 form where the user enters their name. The issue I ...
0
votes
0answers
13 views

Can't generate routes trough FOSJsRoutingBundle

I'm using a AJAX call trough $.ajax() in one of my twig templates and because I need to call a URL so I'm using FOSJsRoutingBundle. After read the docs, follow every steps and write this code in my ...
1
vote
0answers
26 views

using Symfony class loader

Recently, I'm diving into symfony's class loader component. However, I need to solve an issue. I have the following folder structure; -> project -> public -> index.php -> ...
0
votes
1answer
18 views

Symfony: one entity class with multiple instances each with its own form all on one page

Use case: A user makes public and/or private notes about an expertise record. These notes are displayed in the sidebar of the page that shows the expertise record. The notes are grouped into 2 sets: ...
0
votes
0answers
14 views

Paginate through 2 entities

I would like to know if it's possible to use knp paginator to paginate two entities. For example, I have a galery, each category has images and subcategories, I want to paginate sub-categories and ...
0
votes
1answer
16 views

symfony2 contact form error on rendering to the view page

Hey I'm new in this symfony2 framework so i need some helo. This is a code for contact form and when i'm trying to render the form to the view page it gets some error see the code bellow and the ...
0
votes
1answer
14 views

FOSUserBundle validate email in controller

I'm trying to validate fields fosuserbundle in the controller. I'm passing the values ​​from the request without using the form (I'm using the jquery plugin x-editable). So far I have tried this way ...
0
votes
0answers
31 views

Error in my Symfony project after run composer update command

I have run the command composer update on top of my project directory and after that I reload the page but surprise I get this error and don't know the cause or how to fix this: RuntimeException: ...
0
votes
0answers
20 views

How to get child object in embedded Admin class in Sonata Admin?

I'm trying to get and manipulate the actual object related to a ImageAdmin class in SonataAdmin (using Symfony 2.3). This works fine when the ImageAdmin class is the only one being used. But when ...

1 2 3 4 5 814
15 30 50 per page