Skip to content

Tag: symfony

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,

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”…