Skip to content
Advertisement

Tag: symfony

Symfony2.4 form ‘This form should not contain extra fields’ error

I’m trying to build app based on REST api ang AngularJS. I’ve been following this tutorial http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html but have to change some details ( depreciated methods ) and right now when I post to create new entity I get ‘This form should not contain extra fields’ error. my TaskType form: right now in my view I’m rendering only one form

output printer ESC codes from twig in Symfony

I have a system that uses Symfony, and is connected to a (citizen ct-s2000) POS printer. What I currently do is render the string to send to the printer, using the twig service: and send this to the printer using fwrite, after that I feed the paper 1 line and cut the paper using: This all works like a charm,

How to use Master/Slave doctrine2 configurations from Symfony2 Console commands

I’m using the Doctrine2 master/slave configuration in Symfony2 to scale my application across a single master database and several read-only (replicated) slaves. This works perfectly from within my application and Doctrine2 sensibly uses the slave for read-only queries and the master for write operations. If in one of my controllers, I wrote: isConnectedToMaster() returns false – which I would expect

getContainer in symfony

I am trying to get a block from a twig template them render it to my index template: then get it to my controller using then use it in my index template but then im having a problem and symfony says I dont know what to use to get the container running. Answer There is no getContainer() method for a

Symfony/Doctrine Rearranging Database Columns

When I go to generate a table using the doctrine:schema:update command line, it appears that Doctrine(or Symfony?) wants to throw in a command that rearranges my columns, putting the keys towards the front it would appear. I was wondering if, and more hopefully, where, I can disable this “feature” of the Environment, so when I go to generate my tables,

Advertisement