Questions tagged [symfony-2.0]

This is the Symfony 2.0.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.0.x — not just 2.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

As of March 2013, 2.0 is deprecated in favor of the newer versions.

Information

This tag is specific for the 2.0 version of Symfony, which has been released on the 28 July 2011. See the tag for general Symfony 2.x questions.

Symfony 2.0 code is hosted and versioned on github.

As of 20 March 2013, the latest stable release of Symfony 2.0 is version 2.0.23.

Useful links

52 questions
1
vote
1 answer

Embedding a Single Object

I am new to Symfony2.0. I am learning it from the site http://symfony.com/doc/2.0/book/index.html. I've gone through all the topics given in the site but i am not getting output for the topic 'Embedding a Single Object',which is included within the…
Kaushal Bhatt
  • 346
  • 1
  • 10
1
vote
1 answer

How to deploy symfony2 - my dev env works but not prod

I have read the cookbook regarding deploying my symfony2 app to production environment. I find that it works great in dev mode, but the prod mode first wouldn't allow signing in (said bad credentials though I signed in with those very credentials in…
Matt Welander
  • 8,234
  • 24
  • 88
  • 138
1
vote
2 answers

Impossible to customise error message on email field on Sf2

I modify my code to follow @Stony advices. I would like to customise my email input error. I try to follow the symfony2 tutorial but it doesn't work. I follow symfony validation tutorial and I create my yml file, but when I fill my email fiel with…
Tom-pouce
  • 758
  • 2
  • 11
  • 28
0
votes
2 answers

Configuring MongoDB + doctrine in Symfony

I was trying to install MongoDB doctrine bundle as written in here But when I ran the command $ php bin/vendors install It throws up the following error: Fatal error: Call to undefined…
kumarharsh
  • 18,961
  • 8
  • 72
  • 100
0
votes
0 answers

Cannot find module 'less' though less is present

I know this question had been asked a few times already, but I tried everything I found and nothing worked, so I'll ask directly I have a symfony 2.0 project, in which I'm building a docker But when I try to run assetic:dump, I get this error :…
0
votes
1 answer

Installing behat on a Symfony 2.0 project using deps - what versions?

I have a legacy Symfony 2.0 project (version 2.0.11 to be precise) to which I'd like to add behat tests. As it's Symfony 2.0, it uses the deps vendor system rather than composer. I'm not in a position to upgrade the Symfony version or switch to…
Sam
  • 5,997
  • 5
  • 46
  • 66
0
votes
1 answer

add custom options to a form

I'd like to pass an option to my form so I did this: $builder ->add('pays', 'collection', array( 'type' => new PaysType(), 'em' => $this->em, …
smarber
  • 4,829
  • 7
  • 37
  • 78
0
votes
2 answers

Using symfony 2.0.x form component standalone

How does one use the symfony-form component standalone for version 2.0.*? The examples in the documentation show how to create forms, but they use other parts of the symfony ecosystem, like controllers and actions that I currently do not know…
KyoreG
  • 191
  • 1
  • 7
0
votes
1 answer

Cannot find login_check

Unable to find the login_check in symfony2.0 (I know it should be symfony2.4 because it is decrypted, but my customer wants 2.0). What is wrong that symfony cannot finde the login_check-path? My routing.yml: backend_account_login: pattern: …
craphunter
  • 961
  • 2
  • 13
  • 34
0
votes
1 answer

Custom symfony2 form

I have three entities, fos_user, command and preference. The user can send himself an email containing a specific field from each entity, these fields can't be empty. So when the user decides to send the mail, he should update/fill these fields…
smarber
  • 4,829
  • 7
  • 37
  • 78
0
votes
0 answers

how to use a 3rd security option in symfony2 secured login

I am using symfony2.0 secured login for my login page. I have a column name blockstatus in my login table which contains value 1 (blocked user) or 0 (active user). I need to check username, password and also blockstatus column (0 means allow to…
Shri Gowtham
  • 39
  • 1
  • 2
  • 12
0
votes
1 answer

Steps to create Multiple database in symfony 2.0

I am using single database connection. Now I need to use two database connection. I need to know the steps to create two databases. I have lot of doubts. Generate entity commands are same what we using for single db connection or not. Please explain…
Niju
  • 29
  • 2
  • 8
0
votes
1 answer

symfony 2.0.22 request header null

I was working with symfony 2.0.12 but I have this problem: the page is not updated, always returns null. public function cambiarlocaleAction($idioma) { $this->get('session')->setLocale($idioma); $request = $this->get('request'); return…
faisbu
  • 275
  • 1
  • 3
  • 18
0
votes
1 answer

Add Class into uses section in Propel behavior

That's it. I created behavior and only some of its classes are added into head with use due to my behavior. E.g. behavior creates new table named acme. Propel generator adds to my Foo class (app/propel/AppPropelModel/AcmeBundle/om/BaseFoo.php)…
kirilloid
  • 14,011
  • 6
  • 38
  • 52
0
votes
1 answer

How to validate subforms of an entity-mapped form in Symfony2?

I've got a form that is mapped to an entity ('data_class' => ...). I've got validators set up (via annotations) on the entity's properties. The entity has a property (nameTranslations) of doctrine's type array. I created a custom field type composed…
pinkeen
  • 690
  • 3
  • 10
  • 21