Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Added docs for "date" and "number_format" Twig options#8116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Member
xabbuh commentedJul 9, 2017
In fact, using XML to configure the formats was not possible (seesymfony/symfony#23459 for the fix). The config will then look like this: <?xml version="1.0" ?><containerxmlns="http://symfony.com/schema/dic/services"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:twig="http://symfony.com/schema/dic/twig"xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd"> <twig:config> <twig:dateformat="d.m.Y, H:i:s"interval-format="%d days"timezone="Asia/Tokyo" /> <twig:number-formatdecimals="2"decimal-point=","thousands-separator="." /> </twig:config></container> |
HeahDude approved these changesJul 29, 2017
Member
xabbuh commentedAug 1, 2017
Thank you@javiereguiluz. |
xabbuh added a commit that referenced this pull requestAug 1, 2017
…aviereguiluz, HeahDude)This PR was merged into the 2.7 branch.Discussion----------Added docs for "date" and "number_format" Twig options#Thisfixes#7530.* I don't know how to configure these options in XML format. I need help.* The PHP block looks changed entirely because there was an indentation issue and I removed a white space in every line.Commits-------cbbfe44 Removed an extra line543b482 Merge branch '2.7' into fix_753011e245b Updated xml config0a25c17 Added docs for "date" and "number_format" Twig options
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
#Thisfixes#7530.