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

[WIP] make headlines consistent with our standards#3765

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
weaverryan merged 3 commits intosymfony:2.3fromxabbuh:book-headlines-consistency
Apr 12, 2014
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
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
6 changes: 3 additions & 3 deletionsbook/doctrine.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,7 +30,7 @@ The easiest way to understand how Doctrine works is to see it in action.
In this section, you'll configure your database, create a ``Product`` object,
persist it to the database and fetch it back out.

..sidebar::Code along with theexample
..sidebar::Code along with theExample

If you want to follow along with the example in this chapter, create
an ``AcmeStoreBundle`` via:
Expand DownExpand Up@@ -125,7 +125,7 @@ for you:
$ php app/console doctrine:database:create
..sidebar::SettingUp The Database to be UTF8
..sidebar::Settingup the Database to be UTF8

One mistake even seasoned developers make when starting a Symfony2 project
is forgetting to setup default charset and collation on their database,
Expand DownExpand Up@@ -1392,7 +1392,7 @@ powerful, allowing you to create complex queries and subscribe to events
that allow you to take different actions as objects go through their persistence
lifecycle.

LearnMore
Learnmore
~~~~~~~~~~

For more information about Doctrine, see the *Doctrine* section of the
Expand Down
4 changes: 2 additions & 2 deletionsbook/forms.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -618,7 +618,7 @@ Each field type has a number of different options that can be passed to it.
Many of these are specific to the field type and details can be found in
the documentation for each type.

..sidebar::The ``required``option
..sidebar::The ``required``Option

The most common option is the ``required`` option, which can be applied to
any field. By default, the ``required`` option is set to ``true``, meaning
Expand All@@ -636,7 +636,7 @@ the documentation for each type.
In other words, the ``required`` option is "nice", but true server-side
validation should *always* be used.

..sidebar::The ``label``option
..sidebar::The ``label``Option

The label for the form field can be set using the ``label`` option,
which can be applied to any field::
Expand Down
4 changes: 2 additions & 2 deletionsbook/from_flat_php_to_symfony2.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,7 +16,7 @@ to where it is now.
By the end, you'll see how Symfony2 can rescue you from mundane tasks and
let you take back control of your code.

Asimple Blog inflat PHP
ASimple Blog inFlat PHP
-------------------------

In this chapter, you'll build the token blog application using only flat PHP.
Expand DownExpand Up@@ -698,7 +698,7 @@ And perhaps best of all, by using Symfony2, you now have access to a whole
set of **high-quality open source tools developed by the Symfony2 community**!
A good selection of Symfony2 community tools can be found on `KnpBundles.com`_.

Bettertemplates
BetterTemplates
----------------

If you choose to use it, Symfony2 comes standard with a templating engine
Expand Down
4 changes: 2 additions & 2 deletionsbook/http_cache.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -234,7 +234,7 @@ If ``debug`` is ``true``, Symfony2 automatically adds a ``X-Symfony-Cache``
header to the response containing useful information about cache hits and
misses.

..sidebar::Changing from one Reverse Proxy toAnother
..sidebar::Changing from one Reverse Proxy toanother

The Symfony2 reverse proxy is a great tool to use when developing your
website or when you deploy your website to a shared host where you cannot
Expand DownExpand Up@@ -327,7 +327,7 @@ its creation more manageable::
// set a custom Cache-Control directive
$response->headers->addCacheControlDirective('must-revalidate', true);

Public vsPrivate Responses
Public vsprivate Responses
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Both gateway and proxy caches are considered "shared" caches as the cached
Expand Down
6 changes: 3 additions & 3 deletionsbook/http_fundamentals.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,7 +42,7 @@ how to master it.
..index::
single: HTTP; Request-response paradigm

Step1: The Clientsends a Request
Step1: The ClientSends a Request
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Every conversation on the web starts with a *request*. The request is a text
Expand DownExpand Up@@ -105,7 +105,7 @@ the client accepts (``Accept``) and the application the client is using to
make the request (``User-Agent``). Many other headers exist and can be found
on Wikipedia's `List of HTTP header fields`_ article.

Step 2: The Serverreturns a Response
Step 2: The ServerReturns a Response
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Once a server has received the request, it knows exactly which resource the
Expand DownExpand Up@@ -248,7 +248,7 @@ you'll never need to worry about. For example, the ``isSecure()`` method
checks the *three* different values in PHP that can indicate whether or not
the user is connecting via a secured connection (i.e. HTTPS).

..sidebar::ParameterBags and Requestattributes
..sidebar::ParameterBags and RequestAttributes

As seen above, the ``$_GET`` and ``$_POST`` variables are accessible via
the public ``query`` and ``request`` properties respectively. Each of
Expand Down
4 changes: 2 additions & 2 deletionsbook/internals.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -127,7 +127,7 @@ method returns an array of arguments to pass to the Controller callable. The
default implementation automatically resolves the method arguments, based on
the Request attributes.

..sidebar::Matching Controllermethod arguments from Requestattributes
..sidebar::Matching ControllerMethod Arguments from RequestAttributes

For each method argument, Symfony2 tries to get the value of a Request
attribute with the same name. If it is not defined, the argument default
Expand DownExpand Up@@ -489,7 +489,7 @@ token link (a string made of 13 random characters) to access the Web Profiler.
If the token is not clickable, it means that the profiler routes are not
registered (see below for configuration information).

Analyzing Profilingdata with the Web Profiler
Analyzing ProfilingData with the Web Profiler
..............................................

The Web Profiler is a visualization tool for profiling data that you can use
Expand Down
4 changes: 2 additions & 2 deletionsbook/propel.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@ A Simple Example: A Product
In this section, you'll configure your database, create a ``Product`` object,
persist it to the database and fetch it back out.

..sidebar::Code along with theexample
..sidebar::Code along with theExample

If you want to follow along with the example in this chapter, create an
``AcmeStoreBundle`` via:
Expand DownExpand Up@@ -425,7 +425,7 @@ before. First, fetch a ``$product`` object and then access its related

Note, in the above example, only one query was made.

Moreinformation on Associations
MoreInformation on Associations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You will find more information on relations by reading the dedicated chapter on
Expand Down
6 changes: 3 additions & 3 deletionsbook/routing.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1071,7 +1071,7 @@ from the new routing resource.
:doc:`FrameworkExtraBundle documentation</bundles/SensioFrameworkExtraBundle/annotations/routing>`
to see how.

Adding a Hostrequirement to Imported Routes
Adding a HostRequirement to Imported Routes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

..versionadded::2.2
Expand DownExpand Up@@ -1253,8 +1253,8 @@ method::
$this->generateUrl('blog_show', array('slug' => 'my-blog-post'), true);
// http://www.example.com/blog/my-blog-post

From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)
rather than the ``path()`` function (which generates a relative URL). In PHP, pass ``true``
From a template, in Twig, simply use the ``url()`` function (which generates an absolute URL)
rather than the ``path()`` function (which generates a relative URL). In PHP, pass ``true``
to ``generateUrl()``:

..configuration-block::
Expand Down
14 changes: 7 additions & 7 deletionsbook/security.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -570,7 +570,7 @@ see :doc:`/cookbook/security/form_login`.

.. _book-security-common-pitfalls:

..sidebar::AvoidCommon Pitfalls
..sidebar::Avoidcommon Pitfalls

When setting up your login form, watch out for a few common pitfalls.

Expand DownExpand Up@@ -713,7 +713,7 @@ In this section, you'll focus on how to secure different resources (e.g. URLs,
method calls, etc) with different roles. Later, you'll learn more about how
roles are created and assigned to users.

SecuringSpecific URL Patterns
Securingspecific URL Patterns
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The most basic way to secure part of your application is to secure an entire
Expand DownExpand Up@@ -763,7 +763,7 @@ You can define as many URL patterns as you need - each is a regular expression.

.. _security-book-access-control-explanation:

Understanding how ``access_control``works
Understanding how ``access_control``Works
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For each incoming request, Symfony2 checks each ``access_control`` entry
Expand DownExpand Up@@ -1025,7 +1025,7 @@ In the previous sections, you learned how you can protect different resources
by requiring a set of *roles* for a resource. This section explores
the other side of authorization: users.

Where do Userscome from? (*User Providers*)
Where do UsersCome from? (*User Providers*)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

During authentication, the user submits a set of credentials (usually a username
Expand DownExpand Up@@ -1390,7 +1390,7 @@ method:

<p>Username: <?php echo $app->getUser()->getUsername() ?></p>

UsingMultiple User Providers
Usingmultiple User Providers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Each authentication mechanism (e.g. HTTP Authentication, form login, etc)
Expand DownExpand Up@@ -1671,7 +1671,7 @@ the built-in helper function:
idea to have a main firewall that covers all URLs (as has been shown
in this chapter).

Access Control Lists (ACLs): SecuringIndividual Database Objects
Access Control Lists (ACLs): Securingindividual Database Objects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Imagine you are designing a blog system where your users can comment on your
Expand DownExpand Up@@ -1868,7 +1868,7 @@ algorithm; you can use the same strategy in your own code thanks to the
// is password1 equals to password2?
$bool = StringUtils::equals($password1, $password2);

Generating a secureRandom Number
Generating a securerandom Number
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Whenever you need to generate a secure random number, you are highly
Expand Down
2 changes: 1 addition & 1 deletionbook/service_container.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -762,7 +762,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
and "setter injection". The Symfony2 service container also supports
"property injection".

Making ReferencesOptional
Making Referencesoptional
--------------------------

Sometimes, one of your services may have an optional dependency, meaning
Expand Down
4 changes: 2 additions & 2 deletionsbook/templating.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
..index::
single: Templating

Creating andusing Templates
Creating andUsing Templates
============================

As you know, the:doc:`controller</book/controller>` is responsible for
Expand DownExpand Up@@ -1129,7 +1129,7 @@ automatically:
..index::
single: Templating; The templating service

Configuring andusing the ``templating`` Service
Configuring andUsing the ``templating`` Service
------------------------------------------------

The heart of the template system in Symfony2 is the templating ``Engine``.
Expand Down
4 changes: 2 additions & 2 deletionsbook/testing.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -229,7 +229,7 @@ document::

.. _book-testing-request-method-sidebar:

..sidebar::More about the ``request()``method:
..sidebar::More about the ``request()``Method:

The full signature of the ``request()`` method is::

Expand DownExpand Up@@ -404,7 +404,7 @@ The Client supports many operations that can be done in a real browser::
// Clears all cookies and the history
$client->restart();

AccessingInternal Objects
Accessinginternal Objects
~~~~~~~~~~~~~~~~~~~~~~~~~~

..versionadded::2.3
Expand Down
2 changes: 1 addition & 1 deletionbook/translation.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -499,7 +499,7 @@ as the locale for the current request.
You can now use the locale to create routes to other translated pages
in your application.

Setting aDefault Locale
Setting adefault Locale
~~~~~~~~~~~~~~~~~~~~~~~~

What if the user's locale hasn't been determined? You can guarantee that a
Expand Down
4 changes: 2 additions & 2 deletionsquick_tour/the_big_picture.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -318,7 +318,7 @@ environment.

.. _quick-tour-big-picture-environments-intro:

WhatIs anenvironment?
Whatis anEnvironment?
~~~~~~~~~~~~~~~~~~~~~~~

An :term:`Environment` represents a group of configurations that's used to run
Expand DownExpand Up@@ -378,4 +378,4 @@ are eager to learn more about Symfony2, dive into the next section:

.. _Composer: https://getcomposer.org/
.. _executable installer: http://getcomposer.org/download
.. _Twig: http://twig.sensiolabs.org/
.. _Twig: http://twig.sensiolabs.org/
2 changes: 1 addition & 1 deletionquick_tour/the_controller.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -105,7 +105,7 @@ Symfony will transform it into a proper ``500`` error page::

throw new \Exception('Something went wrong!');

Gettinginformation from the Request
GettingInformation from the Request
------------------------------------

Symfony automatically injects the ``Request`` object when the controller has an
Expand Down
4 changes: 2 additions & 2 deletionsquick_tour/the_view.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -244,8 +244,8 @@ parameters are the values of the variables defined in the route pattern::
*absolute* URLs, which is very handy when rendering emails and RSS files:
``{{ url('_demo_hello', {'name': 'Thomas'}) }}``.

Including Assets:images, JavaScripts, andstylesheets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Including Assets:Images, JavaScripts andStylesheets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What would the Internet be without images, JavaScripts, and stylesheets?
Symfony2 provides the ``asset`` function to deal with them easily:
Expand Down
4 changes: 2 additions & 2 deletionsreference/configuration/assetic.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
.. index::
pair: Assetic; Configuration reference
pair: Assetic; Configuration reference

AsseticBundle Configuration ("assetic")
=======================================

FullDefault Configuration
Fulldefault Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. configuration-block::
Expand Down
7 changes: 5 additions & 2 deletionsreference/configuration/doctrine.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
.. index::
single: Doctrine; ORM configuration reference
single: Configuration reference; Doctrine ORM
single: Doctrine; ORM configuration reference
single: Configuration reference; Doctrine ORM

DoctrineBundle Configuration ("doctrine")
=========================================

Full default configuration
--------------------------

.. configuration-block::

.. code-block:: yaml
Expand Down
4 changes: 2 additions & 2 deletionsreference/configuration/framework.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
.. index::
single: Configuration reference; Framework
single: Configuration reference; Framework

FrameworkBundle Configuration ("framework")
===========================================
Expand DownExpand Up@@ -439,7 +439,7 @@ and activate the data collectors by hand::

$profiler->enable();

FullDefault Configuration
Fulldefault Configuration
--------------------------

.. configuration-block::
Expand Down
5 changes: 4 additions & 1 deletionreference/configuration/monolog.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
.. index::
pair: Monolog; Configuration reference
pair: Monolog; Configuration reference

MonologBundle Configuration ("monolog")
=======================================

Full default Configuration
--------------------------

.. configuration-block::

.. code-block:: yaml
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp