Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

file upload fix#2458

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

Closed
agiuliano wants to merge1,222 commits intosymfony:2.0fromagiuliano:2.0
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
1222 commits
Select commitHold shift + click to select a range
79e7558
Merge branch '2.0' into 2.1
weaverryanJan 3, 2013
235513a
Merge branch '2.1'
weaverryanJan 3, 2013
2b8e09b
Added missing PHP and XML formats in new constraints
wouterjJan 3, 2013
c9a25a5
typo fix
lsmith77Jan 5, 2013
6bd16c2
Merge pull request #2106 from lsmith77/patch-1
weaverryanJan 6, 2013
cf20b16
Fixed use of equals (closes #2109)
wouterjJan 6, 2013
e721d7e
Adding versionadd for disabled and read_only form options
SgoettschkesJan 8, 2013
5828740
[Validation] Update CardScheme
SgoettschkesJan 8, 2013
5021adc
Minor changes regarding the hidden form type and form type option dis…
SgoettschkesJan 9, 2013
cc3ce38
Fixing minor grammer issues in CardScheme constraint
SgoettschkesJan 9, 2013
fe3c9dc
Adding a link to the disabled options to the read_only description
SgoettschkesJan 9, 2013
331001c
Merge branch '2.0' into 2.1
fabpotJan 10, 2013
bc78096
Merge branch '2.1'
fabpotJan 10, 2013
5065822
Merge pull request #2115 from Sgoettschkes/card_scheme
weaverryanJan 11, 2013
6ddc50c
Merge pull request #2111 from WouterJ/patch-3
weaverryanJan 11, 2013
6467fdc
[#2111] Minor language tweaks
weaverryanJan 11, 2013
c2d0b99
made changes to take into account the new usage of the different cont…
fabpotJan 12, 2013
abdcf9f
fixed markup
fabpotJan 12, 2013
1550871
switched usage of the include tag to the include function
fabpotJan 12, 2013
823cef3
Merge pull request #2121 from fabpot/content-renderer
weaverryanJan 13, 2013
08a2847
[#2121] Fixing a now defunct include
weaverryanJan 13, 2013
a8d444e
Fix UsernameNotFoundException example (take 2)
Jan 13, 2013
21178b1
[#2121] Tweaking a few things related to new render changes
weaverryanJan 13, 2013
e6ba8e3
Merge pull request #2127 from jrobeson/patch-2
weaverryanJan 13, 2013
d93958a
Merge branch '2.0' into 2.1
weaverryanJan 14, 2013
6896c9b
Merge branch '2.1'
weaverryanJan 14, 2013
9781582
Merge branch '2.0' into 2.1
weaverryanJan 15, 2013
eed8e46
Fixed list of methods of the filesystem component
bjo3rnfJan 4, 2013
f320634
Fixing a typo
weaverryanJan 15, 2013
1bd5d79
Updated app_dev.php code
yosmanygaJan 15, 2013
34dffbd
Docs for repositoryMethod option of UniqueEntity
docteurkleinJan 16, 2013
fa32729
add versionadded tag
docteurkleinJan 16, 2013
ba3eb8d
Use routes for security paths, instead of raw paths
wouterjJan 16, 2013
2567919
Merge branch '2.0' into 2.1
weaverryanJan 17, 2013
2fb8acf
Merge branch '2.1'
weaverryanJan 17, 2013
92baa85
Merge branch '2.0' into 2.1
fabpotJan 17, 2013
9e858d0
Merge branch '2.1'
fabpotJan 17, 2013
a758cea
Merge branch '2.0' into 2.1
weaverryanJan 18, 2013
6ac450b
[#2148] Bringing up one of the changes made by @franmomu
weaverryanJan 18, 2013
5e53d4c
Merge branch '2.1'
weaverryanJan 18, 2013
ddc8747
Merge remote-tracking branch 'origin/master'
weaverryanJan 18, 2013
f52e791
fixed filename, thanks to @rpmsk
wouterjJan 19, 2013
c488fcc
Merge pull request #2157 from WouterJ/patch-6
weaverryanJan 20, 2013
a9ec209
Merge branch '2.0' into 2.1
weaverryanJan 20, 2013
df94e55
[#772] Removing unnecessary rendering of parent repeated field's erro…
weaverryanJan 20, 2013
6fd5ffc
added a missing reference to the proxy route (refs symfony/symfony-st…
fabpotJan 20, 2013
700f529
Update reference/configuration/framework.rst
humandbJan 20, 2013
63fae5b
Update reference/configuration/framework.rst
humandbJan 20, 2013
4191b45
Merge branch '2.0' into 2.1
weaverryanJan 20, 2013
3a364b9
Fixing a typo, thanks to @rpmsk
weaverryanJan 21, 2013
52713f5
Update reference/constraints/Callback.rst
sstokJan 21, 2013
8420b02
Fixes most pattern, _scheme or _method occurences
wouterjJan 21, 2013
38e8dad
Added use of addPrefix to define prefixes
wouterjJan 21, 2013
75d6b4d
Addes some versionadded blocks
wouterjJan 21, 2013
73d24f9
Grammar and syntax cleanup
johnkaryJan 21, 2013
4c48a42
Add comment on http_digest auth.
tarjeiJan 21, 2013
b784172
Update reference/configuration/security.rst
tarjeiJan 21, 2013
0de8194
Changed hostname to host
wouterjJan 21, 2013
4e5cca2
Fixed typo, thanks to @stof
wouterjJan 21, 2013
95bf4da
Update reference/configuration/security.rst
tarjeiJan 22, 2013
96466b9
Update reference/configuration/security.rst
tarjeiJan 22, 2013
75a4f61
Update reference/configuration/security.rst
tarjeiJan 22, 2013
240a1e2
Merge pull request #2159 from fabpot/missing-reference
weaverryanJan 22, 2013
d35b34f
Merge pull request #2165 from WouterJ/update_routing_22
weaverryanJan 22, 2013
6dbbb3c
[#2165] Filling in a few more changes of pattern -> path
weaverryanJan 22, 2013
7ab8be5
replaced the proxy route with a listener
fabpotJan 23, 2013
65494c8
Merge pull request #2169 from johnkary/stopwatchFixes-1
weaverryanJan 23, 2013
4d23c70
merged branch fabpot/content-renderer-simplification (PR #2179)
fabpotJan 24, 2013
bbddf52
[DI] PrependExtensionInterface sync doc with latest Sf2 changes
vicbJan 24, 2013
854bf0e
Merge pull request #2170 from tarjei/patch-1
weaverryanJan 25, 2013
cae9f9f
Merge branch '2.0' into 2.1
weaverryanJan 25, 2013
c926dae
Merge branch '2.1'
weaverryanJan 25, 2013
7679617
Update reference/constraints/UniqueEntity.rst
docteurkleinJan 25, 2013
87710a8
Merge pull request #2074 from Sgoettschkes/issue2022
weaverryanJan 27, 2013
d318602
[#2074] Minor tweaks for DialogHelper::select method
weaverryanJan 27, 2013
fb97719
Merge pull request #2089 from jakzal/finder-glob-support
weaverryanJan 27, 2013
09d1d91
Merge pull request #2097 from WouterJ/ref_constraint_php
weaverryanJan 27, 2013
7a27c7a
Merge pull request #2114 from Sgoettschkes/issue2096
weaverryanJan 27, 2013
c959bd0
[#2114] Simplifying a few things with disabled/readonly
weaverryanJan 27, 2013
9c4200d
Merge pull request #2141 from yosmanyga/debugging
weaverryanJan 27, 2013
7133238
Merge pull request #2145 from docteurklein/patch-1
weaverryanJan 27, 2013
fc1580d
[#2145] Minor tweaks for UniqueEntity repositoryMethod option
weaverryanJan 27, 2013
9d3a9a2
sf2.2 note: _method override disabled by default
mattattuiJan 28, 2013
61ac029
Link method to docs as per @WouterJ suggestion
mattattuiJan 28, 2013
1bc10c1
Merge pull request #2164 from sstok/patch-3
weaverryanJan 30, 2013
1b4086b
[#2164] Removing one more reference to deprecated addViolationAtSubPath
weaverryanJan 30, 2013
a479570
Merge pull request #2181 from vicb/dic/prepext
weaverryanJan 31, 2013
2b6c443
Merge pull request #2189 from inanimatt/patch-1
weaverryanJan 31, 2013
8e45839
Correct parameters file name
johnkaryJan 29, 2013
78e6d4b
[#1640] Removed framework.session.auto_start setting
wouterjJan 31, 2013
0dee5c6
Added trans_default_domain tag to twig reference
wouterjJan 31, 2013
c1eddf7
Reformatted trans_default_domain versionadded block
wouterjJan 31, 2013
d337e76
Reformatted references for translation in twig
wouterjJan 31, 2013
eb9044f
[#1708] Fixed description of single_text date widget
wouterjJan 31, 2013
ac74a8e
updated render usage
fabpotFeb 1, 2013
4adc1e3
Merge pull request #2205 from fabpot/content-renderer-simplification
weaverryanFeb 3, 2013
c5ebfd0
Merge branch '2.0' into 2.1
weaverryanFeb 3, 2013
cce310f
Update reference/configuration/framework.rst
humandbJan 31, 2013
cf74914
Update reference/configuration/framework.rst
humandbFeb 1, 2013
153e180
[#2198] Fixing some syntax errors, long lines
weaverryanFeb 3, 2013
5743c76
Merge branch '2.0' into 2.1
weaverryanFeb 3, 2013
1c426f6
[#2199] Porting fix up to 2.1 branch
weaverryanFeb 3, 2013
f07492e
Merge branch '2.0' into 2.1
weaverryanFeb 3, 2013
b1d3daa
Merge branch '2.1'
weaverryanFeb 3, 2013
eedcf38
Fixing syntax error
weaverryanFeb 3, 2013
0eda298
[#1786] Adding documentation for Twig namespaced paths support
weaverryanFeb 3, 2013
11fa2ef
shorten dynamic forms article, don't explain what is already elsewher…
khepinFeb 7, 2013
64a3b2e
Fixed issues, thanks to @weaverryan
wouterjFeb 7, 2013
a7ce478
[#1786] Tweaks per @WouterJ on #2211
weaverryanFeb 8, 2013
1409445
Merge pull request #2211 from symfony/twig-namespaced-paths
weaverryanFeb 8, 2013
c9bd8f6
Merge pull request #2146 from WouterJ/fix_2108
weaverryanFeb 11, 2013
eaf16e5
[#2146] A few more tweaks for security paths => routes
weaverryanFeb 11, 2013
89126fa
Update book/translation.rst
lkysowJan 29, 2013
457cf48
Merge pull request #2200 from WouterJ/patch-10
weaverryanFeb 11, 2013
51abbea
[#2200] Removing one more reference to auto_start and updating all of…
weaverryanFeb 11, 2013
8f43530
Update book/translation.rst
lkysowFeb 6, 2013
0ad5cf4
Merge pull request #2204 from WouterJ/patch-11
weaverryanFeb 14, 2013
ea17640
[Reference] updated framework config reference
1edFeb 16, 2013
1df50db
Merge branch '2.0' into 2.1
weaverryanFeb 19, 2013
d701c1a
[#2231] Reversing change that only applies to 2.0 after merging 2.0 i…
weaverryanFeb 19, 2013
f239002
[#2211] Fix thanks to @stof!
weaverryanFeb 19, 2013
b5056b3
Merge pull request #1936 from elnur/bcrypt-password-encoder
weaverryanFeb 19, 2013
782c649
[#1936] Moving new BCrypt details into the reference section and touc…
weaverryanFeb 19, 2013
8a8ea6f
Merge pull request #2241 from 1ed/framework-ref
weaverryanFeb 19, 2013
989073d
Merge branch '2.0' into 2.1
weaverryanFeb 19, 2013
a067cba
Merge branch '2.1'
weaverryanFeb 19, 2013
ad831bc
Fix naming of __construct()
johnkaryFeb 19, 2013
6f71062
Improve readability
johnkaryFeb 19, 2013
12b8be3
Remove extra whitespace
johnkaryFeb 19, 2013
fd9a696
Add API doc links
johnkaryFeb 19, 2013
e12cade
Merge branch '2.0' into 2.1
weaverryanFeb 22, 2013
124901d
[#2258] Revert "Fixed the serializer initialization for 2.0"
weaverryanFeb 22, 2013
5e5c93d
Created PropertyAccess component docs
wouterjJan 14, 2013
f7a36ae
Merge branch 'document_propertyaccess' of github.com:WouterJ/symfony-…
weaverryanFeb 23, 2013
91171ac
Merge branch 'cookbook/form/unit-testing' of github.com:marekkalnik/s…
weaverryanFeb 23, 2013
6010340
Merge pull request #2252 from johnkary/configSemantic
weaverryanFeb 23, 2013
6b04895
Merge branch '2.0' into 2.1
weaverryanFeb 23, 2013
776ae4c
[#1039][#2251] Updating the Form variables section with the new 2.1 v…
weaverryanFeb 23, 2013
162cc6b
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryanFeb 23, 2013
3ccb220
[#2012] Proofreading the new unit testing form types chapter
weaverryanFeb 23, 2013
a0be65e
Merge branch 'marekkalnik-cookbook/form/unit-testing' into 2.1
weaverryanFeb 24, 2013
24274f0
[#2130][2136] Proofreading the excellent new PropertyAccess component…
weaverryanFeb 25, 2013
fe35ecc
Merge branch '2.0' into 2.1
weaverryanFeb 25, 2013
5246f51
Merge branch '2.1'
weaverryanFeb 25, 2013
4dabbf2
Used route names for security paths
wouterjFeb 20, 2013
b332099
Update reference/configuration/framework.rst
luiges90Feb 25, 2013
f239d0e
Merge branch '2.0' into 2.1
weaverryanFeb 27, 2013
53c4d8e
Merge branch '2.1'
weaverryanFeb 27, 2013
b408349
Merge pull request #2202 from WouterJ/trans_domain_twig
weaverryanMar 4, 2013
a4ea400
[#2202] Slight fixes - misnamed target and missing names for the targ…
weaverryanMar 4, 2013
725d107
Merge branch '2.0' into 2.1
weaverryanMar 4, 2013
5dc2b8b
[2.2] Updating some URLs from 2.1/master to 2.2
weaverryanMar 8, 2013
3e6be25
Merge branch '2.0' into 2.1
weaverryanMar 8, 2013
c446279
Merge branch '2.1' into 2.2
weaverryanMar 8, 2013
b38edbc
[#2248] Changing pattern -> path after a merge per @WouterJ
weaverryanMar 8, 2013
e478e24
add explicit profiler enabling, necessary on 2.2
ricardclauMar 8, 2013
929bd1c
Update introduction.rst
janschoenherrMar 10, 2013
e6332ab
[Reference] Updated Callback to use interfaces
franmomuMar 11, 2013
405b15f
[Reference] [UserPassword] Use the non-deprecated class for Symfony 2.2
michaelperrinMar 11, 2013
cb1315c
[Reference] [UserPassword] Add a note concerning the namespace change
michaelperrinMar 11, 2013
7fd28f2
[Reference] [UserPassword] Updated deprecation note
michaelperrinMar 11, 2013
b34f46a
Merge pull request #2297 from michaelperrin/fix/ref-UniquePassword-depr
weaverryanMar 12, 2013
995409e
Merge pull request #2294 from janschoenherr/patch-2
weaverryanMar 12, 2013
c524fdf
Fixed the ESI render example code to work with symfony 2.1
Mar 13, 2013
8e36949
Update default exception_controller in TwigBundle Configuration Refer…
hacfiMar 14, 2013
678ab93
Update twig_reference.rst
Mar 5, 2013
47aeb95
Fixed typos
pborreliMar 6, 2013
eb9959c
Merge pull request #2283 from symfony/2.2-update-urls
weaverryanMar 15, 2013
f3c431f
[#2283] Updating URL from 2.1 to master on master branch
weaverryanMar 15, 2013
0bec643
Merge pull request #2284 from ricardclau/2.2
weaverryanMar 15, 2013
db4af6e
Update components/config/definition.rst
lyrixxFeb 18, 2013
67432f0
Merge pull request #2256 from WouterJ/security_paths
weaverryanMar 17, 2013
da352a9
Adding two forgotten use statements to virtual form cookbook page
Feb 5, 2013
249d1bf
Merge branch '2.0' into 2.1
weaverryanMar 17, 2013
1563c71
Fixed spelling mistake
ToflarFeb 15, 2013
a5ef0c8
Rewritten the --prefer-dist tip
wouterjMar 17, 2013
d5000de
Fixed minor format issue
wouterjMar 3, 2013
6539925
Another typo fix
wouterjMar 3, 2013
12e94ac
Merge pull request #2288 from WouterJ/patch-19
weaverryanMar 17, 2013
dea61db
Merge pull request #2295 from franmomu/patch-1
weaverryanMar 17, 2013
728dec8
Merge pull request #2305 from hacfi/2.2
weaverryanMar 18, 2013
20b272d
Added charset setting
wouterjMar 19, 2013
76a0014
Reverting so that this can be re-done as a PR
weaverryanMar 21, 2013
a7e64b6
Added composer changes
wouterjMar 21, 2013
2639ae0
Document override charset
wouterjMar 21, 2013
e130709
[components/filesystem]fixed chmod's sequence number of recursive arg…
77webMar 23, 2013
e06de6b
[components/filesystem]fixed description for copy's third argument ac…
77webMar 23, 2013
eae1566
added a note about the new setCurrent method on the progress helper
fabpotMar 23, 2013
441e766
removed deprecated trust_proxy_headers docs
fabpotMar 23, 2013
74f9a1f
removed docs on PHP parsing in YAML files
fabpotMar 23, 2013
f886afc
updated deprecated usage of flash bags
fabpotMar 23, 2013
6e7c0cd
removed deprecated min/max/minlength/maxlength constraints
fabpotMar 23, 2013
ac9fbcd
updated the way form errors are customized
fabpotMar 23, 2013
4e60117
Fixing variable name for target_path
SgoettschkesMar 23, 2013
3495929
[Security] Fixed encoder reference
lyrixxMar 23, 2013
d879786
Document new framework option http_method_override
hacfiMar 25, 2013
7b06db8
Merge pull request #2342 from fabpot/progress-helper
weaverryanMar 25, 2013
ed39ba0
[Book][ServiceContainer] Added docs for YAML '@@' escaping
Mar 8, 2013
784b611
added documentation for the dispatchable console application
fabpotMar 24, 2013
f9bbfcd
updated documentation for synchronized services
fabpotMar 23, 2013
29c54c3
[Security] Fix typo in chain provider entity
lyrixxMar 23, 2013
bbfb24e
[Security] Used more explicit name
lyrixxMar 23, 2013
a3d5856
[Security] Fixed my_in_memory_provider
lyrixxMar 26, 2013
2821a55
Merge pull request #2343 from fabpot/synchronized-services
weaverryanMar 26, 2013
35fff77
[#2343] Minor tweaks to synchronized services section
weaverryanMar 26, 2013
bf4ce18
removed deprecated cookie config options
fabpotMar 23, 2013
a786941
removed deprecated auto_start setting
fabpotMar 23, 2013
934531c
removed deprecated charset setting
fabpotMar 23, 2013
18f4575
Merge branch 'patch-1' of github.com:loalf/symfony-docs into loalf-pa…
weaverryanMar 30, 2013
a9c8ed6
[#1829] Moving serializer framework docs around - added a new cookboo…
weaverryanMar 30, 2013
292d516
Merge branch 'khepin-dynamic_forms' into 2.1
weaverryanMar 30, 2013
e9339bd
Update installation.rst
ericpoeMar 30, 2013
6243847
Merge pull request #2304 from paran01d/fix_21_esi_render_example
weaverryanMar 30, 2013
6658c97
[#2304] Finding another bad {% render syntax in 2.1
weaverryanMar 30, 2013
cf6cbaf
Merge branch '2.0' into 2.1
weaverryanMar 30, 2013
07c649f
Merge branch '2.1' into 2.2
weaverryanMar 30, 2013
a2f362d
[#2308] Reverting commit as 2.1 uses Twig 1.12, which uses the new wa…
weaverryanMar 30, 2013
2aea4bc
Merge branch '2.1' into 2.2
weaverryanMar 30, 2013
bbdc8ce
Merge branch '2.2'
weaverryanMar 30, 2013
5b3eb69
Merge pull request #2332 from WouterJ/doc_override_dir_21
weaverryanMar 30, 2013
159fa7f
Merge branch '2.0' into 2.1
weaverryanMar 30, 2013
a3f5706
Merge pull request #2341 from 77web/fix-filesystem-component-doc
weaverryanMar 30, 2013
dbec913
Merge branch '2.0' into 2.1
weaverryanMar 30, 2013
7e2f8b9
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryanMar 30, 2013
0dd0042
Merge branch '2.1' into 2.2
weaverryanMar 30, 2013
232525f
Merge branch '2.2'
weaverryanMar 30, 2013
381e578
Merge branch 'deprecated' of github.com:fabpot/symfony-docs into fabp…
weaverryanMar 30, 2013
851c35a
[#2344] Backporting some deprecated features which were not reflected…
weaverryanMar 30, 2013
117e021
Merge branch '2.1' into 2.2
weaverryanMar 30, 2013
3f481a9
Merge branch '2.2'
weaverryanMar 30, 2013
a2dabe8
Merge branch '2.0' into 2.1
weaverryanMar 30, 2013
75e7e4c
Merge branch '2.1' into 2.2
weaverryanMar 30, 2013
1a41cf4
Merge branch '2.2'
weaverryanMar 30, 2013
46ce5a4
Merge pull request #2345 from Sgoettschkes/issue2253
weaverryanMar 30, 2013
c2b9ce2
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryanMar 30, 2013
ce885a4
[#2345] Minor tweaks to target path
weaverryanMar 30, 2013
bc9febe
Merge pull request #2349 from lyrixx/patch-ref-sercu
weaverryanMar 30, 2013
8d6d6c3
Fix signature UserNotFoundException in entity_provider.rst.
marcusesaMar 25, 2013
c7c215f
Merge pull request #2352 from fabpot/console-events
weaverryanMar 30, 2013
5e502ea
[#2352] Minor tweaks to new console events section
weaverryanMar 30, 2013
f48b10a
Merge branch 'feature/di-parameter-escape' of github.com:tPl0ch/symfo…
weaverryanMar 31, 2013
40f7fdf
Merge branch 'tPl0ch-feature/di-parameter-escape' into 2.1
weaverryanMar 31, 2013
d235378
Merge branch '2.1' into 2.2
weaverryanMar 31, 2013
87dd61e
Merge branch '2.2'
weaverryanMar 31, 2013
de47600
Merge branch 'http_method_override' of github.com:hacfi/symfony-docs …
weaverryanMar 31, 2013
97ac8eb
[#2355] Moving message about the _method activation
weaverryanMar 31, 2013
67cc5d1
Merge branch '2.2'
weaverryanMar 31, 2013
647fd97
[#2355] Updating note about _method activation for 2.3
weaverryanMar 31, 2013
595d6ef
Fix upload code
agiulianoApr 2, 2013
bac7612
Fix file error
agiulianoApr 2, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletionsbook/_security-2012-6431.rst.inc
View file
Open in desktop

This file was deleted.

44 changes: 23 additions & 21 deletionsbook/controller.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -141,7 +141,7 @@ Mapping a URL to a Controller
-----------------------------

The new controller returns a simple HTML page. To actually view this page
in your browser, you need to create a route, which maps a specific URLpattern
in your browser, you need to create a route, which maps a specific URLpath
to the controller:

.. configuration-block::
Expand All@@ -150,13 +150,13 @@ to the controller:

# app/config/routing.yml
hello:
pattern: /hello/{name}
defaults:{ _controller: AcmeHelloBundle:Hello:index }
path: /hello/{name}
defaults: { _controller: AcmeHelloBundle:Hello:index }

.. code-block:: xml

<!-- app/config/routing.xml -->
<route id="hello"pattern="/hello/{name}">
<route id="hello"path="/hello/{name}">
<default key="_controller">AcmeHelloBundle:Hello:index</default>
</route>

Expand DownExpand Up@@ -229,13 +229,13 @@ example:

# app/config/routing.yml
hello:
pattern: /hello/{first_name}/{last_name}
defaults:{ _controller: AcmeHelloBundle:Hello:index, color: green }
path: /hello/{first_name}/{last_name}
defaults: { _controller: AcmeHelloBundle:Hello:index, color: green }

.. code-block:: xml

<!-- app/config/routing.xml -->
<route id="hello"pattern="/hello/{first_name}/{last_name}">
<route id="hello"path="/hello/{first_name}/{last_name}">
<default key="_controller">AcmeHelloBundle:Hello:index</default>
<default key="color">green</default>
</route>
Expand DownExpand Up@@ -325,7 +325,7 @@ working with forms, for example::
{
$form = $this->createForm(...);

$form->bindRequest($request);
$form->bind($request);
// ...
}

Expand DownExpand Up@@ -632,8 +632,8 @@ from any controller::
// in another controller for another request
$foo = $session->get('foo');

//settheuser locale
$session->setLocale('fr');
//use a default value ifthekey doesn't exist
$filters = $session->get('filters', array());

These attributes will remain on the user for the remainder of that user's
session.
Expand All@@ -655,14 +655,11 @@ For example, imagine you're processing a form submit::
{
$form = $this->createForm(...);

$form->bindRequest($this->getRequest());
$form->bind($this->getRequest());
if ($form->isValid()) {
// do some sort of processing

$this->get('session')->setFlash(
'notice',
'Your changes were saved!'
);
$this->get('session')->getFlashBag()->add('notice', 'Your changes were saved!');

return $this->redirect($this->generateUrl(...));
}
Expand All@@ -681,19 +678,19 @@ the ``notice`` message:

.. code-block:: html+jinja

{%ifapp.session.hasFlash('notice') %}
{%for flashMessage inapp.session.flashbag.get('notice') %}
<div class="flash-notice">
{{app.session.flash('notice') }}
{{flashMessage }}
</div>
{%endif %}
{%endfor %}

.. code-block:: html+php

<?phpif ($view['session']->hasFlash('notice')): ?>
<?phpforeach ($view['session']->getFlashBag()->get('notice') as $message): ?>
<div class="flash-notice">
<?php echo$view['session']->getFlash('notice') ?>
<?php echo"<div class='flash-error'>$message</div>" ?>
</div>
<?phpendif; ?>
<?phpendforeach; ?>

By design, flash messages are meant to live for exactly one request (they're
"gone in a flash"). They're designed to be used across redirects exactly as
Expand DownExpand Up@@ -727,6 +724,11 @@ headers and content that's sent back to the client::
header names are normalized so that using ``Content-Type`` is equivalent
to ``content-type`` or even ``content_type``.

.. tip::

There is also a special :class:`Symfony\\Component\\HttpFoundation\\JsonResponse`
class that helps return JSON responses. See :ref:`component-http-foundation-json-response`.

.. index::
single: Controller; Request object

Expand Down
59 changes: 28 additions & 31 deletionsbook/doctrine.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,21 +44,23 @@ Configuring the Database

Before you really begin, you'll need to configure your database connection
information. By convention, this information is usually configured in an
``app/config/parameters.ini`` file:
``app/config/parameters.yml`` file:

.. code-block::ini
.. code-block::yaml

; app/config/parameters.ini
[parameters]
database_driver = pdo_mysql
database_host = localhost
database_name = test_project
database_user = root
database_password = password
# app/config/parameters.yml
parameters:
database_driver: pdo_mysql
database_host: localhost
database_name: test_project
database_user: root
database_password: password

# ...

.. note::

Defining the configuration via ``parameters.ini`` is just a convention.
Defining the configuration via ``parameters.yml`` is just a convention.
The parameters defined in that file are referenced by the main configuration
file when setting up Doctrine:

Expand DownExpand Up@@ -479,7 +481,7 @@ of the bundle:
$product->setPrice('19.99');
$product->setDescription('Lorem ipsum dolor');

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$em->persist($product);
$em->flush();

Expand DownExpand Up@@ -626,7 +628,7 @@ you have a route that maps a product id to an update action in a controller::

public function updateAction($id)
{
$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$product = $em->getRepository('AcmeStoreBundle:Product')->find($id);

if (!$product) {
Expand DownExpand Up@@ -692,7 +694,7 @@ Imagine that you want to query for products, but only return products that
cost more than ``19.99``, ordered from cheapest to most expensive. From inside
a controller, do the following::

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$query = $em->createQuery(
'SELECT p FROM AcmeStoreBundle:Product p WHERE p.price > :price ORDER BY p.price ASC'
)->setParameter('price', '19.99');
Expand DownExpand Up@@ -868,7 +870,7 @@ ordered alphabetically.

You can use this new method just like the default finder methods of the repository::

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$products = $em->getRepository('AcmeStoreBundle:Product')
->findAllOrderedByName();

Expand DownExpand Up@@ -1101,7 +1103,7 @@ Now you can see this new code in action! Imagine you're inside a controller::
// relate this product to the category
$product->setCategory($category);

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$em->persist($category);
$em->persist($product);
$em->flush();
Expand DownExpand Up@@ -1507,12 +1509,7 @@ Some notable or interesting tasks include:

.. code-block:: bash

$ php app/console doctrine:ensure-production-settings --no-debug --env=prod

.. caution::

Don't forget to add the ``--no-debug`` switch, because the debug flag is
always set to true, even if the environment is set to ``prod``.
$ php app/console doctrine:ensure-production-settings --env=prod

* ``doctrine:mapping:import`` - allows Doctrine to introspect an existing
database and create mapping information. For more information, see
Expand DownExpand Up@@ -1563,14 +1560,14 @@ For more information about Doctrine, see the *Doctrine* section of the

.. _`Doctrine`: http://www.doctrine-project.org/
.. _`MongoDB`: http://www.mongodb.org/
.. _`Basic Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/query-builder.html
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/dql-doctrine-query-language.html
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/association-mapping.html
.. _`Basic Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
.. _`Mapping Types Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#doctrine-mapping-types
.. _`Property Mapping documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#property-mapping
.. _`Lifecycle Events documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/events.html#lifecycle-events
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#quoting-reserved-words
.. _`Persistent classes`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#persistent-classes
.. _`Property Mapping`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#property-mapping
.. _`Mapping Types Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#doctrine-mapping-types
.. _`Property Mapping documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping
.. _`Lifecycle Events documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#lifecycle-events
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#quoting-reserved-words
.. _`Persistent classes`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#persistent-classes
.. _`Property Mapping`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping
Loading

[8]ページ先頭

©2009-2025 Movatter.jp