Just a quick note for myself to escape # character in yaml – Symfony. When i’m trying to load batch data, some of the record seems not imported successfully especially with hash # character. By default, all the string behind the hash # character is treated as comment.
Here’s the example to escape hash # character:-
Advertisements
test.yml
testrow:
subject: "how to escape hash # character"
Just add a double quote for your string and the hash # character will be able to escape.
Related posts:
How to hide .svn folders in Eclipse or Aptana
Symfony 1.4 - Customize Admin Generator listing to show data from foreign tables
How to strtolower an array in PHP?
Symfony: Control Model->save() function to perform INSERT or UPDATE
How to install apache, php, mysql with macport in Mac OS X
Composer: PHP Fatal error: Allowed memory size of ... exhausted...
WordPress Plugin Dev: How to send email using SMTP?
PHP Fatal error: Class ‘DOMDocument’ not found in …
Share this with your friends:-
nice, but I have a trouble: colors:[“#FFF00″,”#FF0FF0”] or subject [#FFF00] , doesnt work!