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

Automapping entities when using FriendsOfSymfony / FOSElasticaBundle implementing Elastic Search

Using FriendsOfSymfony / FOSElasticaBundle with Symfony 2, I need to know if there is anyway i can automap all of the entities with indexing. Or manual entries is only way i can map entities for implementing Elastica Searching. Thanks
0
votes
1 answer

Using Regex string constraint instead of custom constraint in Symfony2

I've created a custom phone constraint following the steps in this recipe from the Symfony2 cookbook. The constraint class: namespace Foo\Bundle\StackBundle\Validator\Constraints; use Symfony\Component\Validator\Constraint; /** * @Annotation …
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
1 answer

Undefined variable $output in Symfony Component Console DialogHelper

I tried to run symfony console command, but I've got an error: Notice: Undefined variable: output in /var/www/.../vendor/symfony/symfony/src/Symfony/Component/Console/Helper/DialogHelper.php line 411 I have no idea, why it went wrong. Can anyone…
Serge Kvashnin
  • 4,332
  • 4
  • 23
  • 37
0
votes
1 answer

Inserting new entity into or deleting entity from database with position attribute

So let's say, I got 20 entities in my database already, each of them having a position attribute to display what entity comes first on my website. If I add a entity, I would like to actually make the position the first, so the position would be 0 at…
Jimmy Knoot
  • 2,378
  • 20
  • 29
0
votes
2 answers

symfony2.3 with compass

sorry for my bad English, I'm using symfony2.3 on windows8. When i try to use compass filter i get the error output: "You must compile individual stylesheets from the project directory." Here is my assetic configuration: assetic: debug: …
0
votes
1 answer

Setting property value in custom form type

I have an entity Category that has Category children like a tree. I have a CategorySelectorType that has a few non-mapped fields which determine what Category should be set to the form data. I want to be able to include that CategorySelectorType in…
d0001
  • 2,162
  • 3
  • 20
  • 46
0
votes
0 answers

Symfony Upgrade from 2.2 to 2.3 routing error

I just started to upgrade my project from 2.2 to the newly released 2.3, and after a while I managed to get it work, but there is a little problem in dev environment. From the routing_dev.yml it reads only the first entry, and if the first is the…
ghostika
  • 1,473
  • 1
  • 12
  • 23
0
votes
2 answers

customizing selectable options in forms

So, I'm looking for a solution for the following problem that would be "best practice" to implement in Symfony2.3. Short description of situation: I've got a form defined in it's own class ("ProductType") The form contains a field that is linked to…
DoppyNL
  • 1,415
  • 1
  • 14
  • 24
0
votes
1 answer

How to Inject Logged User into Property by Annotation

I have an entity called Item as above:
dextervip
  • 4,999
  • 16
  • 65
  • 93
0
votes
2 answers

Non-existent service "fos_user.user_provider.username_email"

I am following the guide to install FOSUserBundle located at https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md My security file: security: encoders: FOS\UserBundle\Model\UserInterface: sha512 …
dextervip
  • 4,999
  • 16
  • 65
  • 93
0
votes
2 answers

symfony2 routing requirements combining 2 parameters

So I got this in my routing.yml: requirements: var1: \d+ var2: \d+ Both are checked on their own and valid. I need to check the combination of the 2, since the combination is not always valid. For this case I need to check the relation…
DoppyNL
  • 1,415
  • 1
  • 14
  • 24
0
votes
1 answer

Fill a form with the username in the symfony2 session

I want to build a form that can use the information stored in a session to set default field values. ie when a user wants to log in, the field username will be populated automatically with the username stored in the session.
hag
  • 11
-1
votes
1 answer

type: 'ckeditor' doesn't work in EasyAdminBundle

I'm follow the guide on To Integrating IvoryCKEditorBundle in EasyAdminBundle, I'm using Symfony 3.1.10 version and EasyAdminBundle 1.17.12 I put on AppKernel new Ivory\CKEditorBundle\IvoryCKEditorBundle(), //CK Editor and just like say in the…
-1
votes
2 answers

Call container inside ExceptionListener

I am using Symfony and i have created custom ExceptionListener to handle error. class ExceptionListener { protected $templating; protected $kernel; public function __construct(EngineInterface $templating, $kernel) { …
scott
  • 3,112
  • 19
  • 52
  • 90
-1
votes
1 answer

Get a Twig file by relative path then include it in base.html.twig in app folder

This is my iframe code in my base template: In my app folder I have another folder named include/ that has a twig file named main.html.twig. I want to include…