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

Symfony2 set default language when you run url

I'm trying to set the local automatically if none is specified in the url. What I want to to realize is: if the user enters the site www.example.com is automatically set to the English language. I tried this: # homepage not localized: load the…
user2126724
0
votes
3 answers

Symfony2 - how to display content and secure access to it

I'm developing an application that displays books as interactive flash content with Symfony2. Each book has one index.html file that carries all those flash things embedded in html code and some directories with all required parts of book (images,…
Rado Mark
  • 1
  • 1
0
votes
1 answer

Inheritance Mapping: use case

I find myself in a scenario: a soundtrack can have multiple instruments. Of that soundtrack there can be some versions with a different tone and versions without any instruments, or with a different tone and without any instruments. In…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
0 answers

Sitewide http auth interfering with Symfony2 app authentication

I have a site under development with the following structure: public_html/ index.php symfony_app/ other_app/ Currently I have the root of the site behind Basic HTTP authentication during the development testing phase. I couldn't figure…
Fo.
  • 3,752
  • 7
  • 28
  • 44
0
votes
1 answer

Get Symfony2's kernel in config

how can I get the AppKernel obj in the php-version of the Symfony2 configuration? I need a parameter who's set in app.php/app_dev.php Thanks for helping!
0
votes
1 answer

smarty bundle installation and assetic.use_controller

I'm using Symfony version 2.3.1 and SmartyBundle version 1.2.0. I followed the steps 2.3 and 2.4 at https://smartybundle.readthedocs.org/en/latest/installation.html. But as soon as I enable SmartyBundle in AppKernel.php, I have this error in…
Alsciende
  • 26,583
  • 9
  • 51
  • 67
0
votes
1 answer

Change label in submitted form - finishView function?

How could i change the label of a form field after a submit of them? Example form class TestType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('test',…
Patrick
  • 829
  • 2
  • 13
  • 34
0
votes
1 answer

Why CRUD generator Twig_Error_Loader fails me in symfony2.3?

I'm doing my own Crud Generate in Symfony 2.3. This is my code. namespace Gotakey\BackendBundle\Command; use Sensio\Bundle\GeneratorBundle\Generator\DoctrineCrudGenerator; use…
DavidQ
  • 26
  • 1
0
votes
1 answer

Data transformer and length checking

I have this code below to transform a phone number with spaces between 555 555 555 to 555555555. Besides, I want to check if the number has 9 digits. $form = $builder ->add('Nombre', 'text') ->add('Email', 'text') …
tirenweb
  • 30,963
  • 73
  • 183
  • 303
0
votes
1 answer

Full-text searching in Symfony 2 and Propel 1.6

How can i use full-text filters in symfony 2 using Propel 1.6 (propel bundle 1.2)? It's mentioned on the propel bundle readme, but didn't find any example of how to use it.
Radu Dragomir
  • 660
  • 2
  • 9
  • 35
0
votes
1 answer

How can i add more locales to Symfony/Icu 1.0.x?

Symfony2 Form localization now depends on Symfony/Intl and Symfony/Icu components. If the server you run you application has ICU lib version lower than 4.0 you must use the Symfony/Icu 1.0.x component which emulates the ICU lib. The problem is that…
Laurynas Mališauskas
  • 1,909
  • 1
  • 19
  • 34
0
votes
3 answers

symfony 2 number and date format

I am developing a multi country multi language application and one of the issues I have are the decimal point separator and the date format. I am aware of the setLocale method, but the only changes I have seen are in translations. Do I have to use…
mentalic
  • 965
  • 2
  • 14
  • 30
0
votes
1 answer

Where should I locate the independent php file in symfony2.3 which is being used in my contoller?

I am new to symfony 2.3 I have a problem in running an independent php file from my controller. I want to run that file from shell_exec() and to use it's output in my code. But i dont know the right way that where to locate that file I want to…
priyank
  • 148
  • 3
  • 16
0
votes
1 answer

Knp Paginator doesn't works with Query

I am settting up knp paginator, my composer is set to "knplabs/knp-paginator-bundle": "2.3.*" however It is not working for Query object. Here is my query: public function getCommentariesByUser(User $user) { $qb =…
dextervip
  • 4,999
  • 16
  • 65
  • 93
0
votes
2 answers

multiple firewalls and providers in symfony2

I'm working on simple app which handles authentication for two kind of users, User and Admin entities. I want to have two separate firewalls and providers for that so my security.yml file looks like this: security: firewalls: …
Karol F
  • 1,556
  • 2
  • 18
  • 33