Skip to content

Commit

Permalink
Finish up title casing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Jan 17, 2014
1 parent 9765e53 commit e8cc816
Show file tree
Hide file tree
Showing 23 changed files with 161 additions and 161 deletions.
44 changes: 22 additions & 22 deletions en/console-and-shells.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Some of these applications are used in concert with other CakePHP
features (like ACL or i18n), and others are for general use in
getting you working faster.

The CakePHP console
The CakePHP Console
===================

This section provides an introduction into CakePHP at the
Expand Down Expand Up @@ -102,7 +102,7 @@ or supplied as an absolute path.

.. _adding-cake-to-your-path:

Adding cake to your system path
Adding Cake to Your System Path
-------------------------------

If you are on a \*nix system (linux, MacOSX) the following steps will let you add the
Expand All @@ -129,7 +129,7 @@ If you are on Windows Vista or 7, you should follow the steps below.

#. Click Ok and ``cake`` should work anywhere.

Creating a shell
Creating a Shell
================

Let's create a shell for use in the Console. For this example,
Expand Down Expand Up @@ -190,7 +190,7 @@ or parameters. This is because the first positional argument or option is
interpreted as the command name. If you want to use arguments and options, you
should use method names other than ``main``.

Using Models in your shells
Using Models in Your Shells
---------------------------

You'll often need access to your application's business logic in shell utilities;
Expand All @@ -211,7 +211,7 @@ models attached to it::
The above shell, will fetch a user by username and display the information
stored in the database.

Shell tasks
Shell Tasks
===========

There will be times when building more advanced console applications, you'll want
Expand Down Expand Up @@ -261,7 +261,7 @@ You can also access tasks directly from the command line::
class would override the ability to access the functionality in the
Sound task specified in the $tasks array.

Loading tasks on the fly with TaskCollection
Loading Tasks on the Fly With TaskCollection
--------------------------------------------

You can load tasks on the fly using the Task collection object. You can load tasks that
Expand All @@ -275,7 +275,7 @@ Would load and return a ProjectTask instance. You can load tasks from plugins us

.. _invoking-other-shells-from-your-shell:

Invoking other shells from your shell
Invoking Other Shells from Your Shell
=====================================

Shells no longer have direct access to the ShellDispatcher any more through `$this->Dispatch`.
Expand All @@ -295,7 +295,7 @@ from inside your plugin's shell.

.. _shell-output-level:

Console output levels
Console Output Levels
=====================

Shells often need different levels of verbosity. When running as cron jobs,
Expand Down Expand Up @@ -326,7 +326,7 @@ You can control the output level of shells, by using the ``--quiet`` and ``--ver
options. These options are added by default, and allow you to consistently control
output levels inside your CakePHP shells.

Styling output
Styling Output
==============

Styling output is done by including tags - just like HTML - in your output.
Expand Down Expand Up @@ -370,7 +370,7 @@ truthy value enables them.
Adding a style makes it available on all instances of ConsoleOutput as well,
so you don't have to redeclare styles for both stdout and stderr objects.

Turning off colouring
Turning Off Colouring
---------------------

Although colouring is pretty awesome, there may be times when you want to turn it off,
Expand All @@ -392,7 +392,7 @@ By default on \*nix systems ConsoleOutput objects default to colour output.
On windows systems, plain output is the default unless the ``ANSICON`` environment
variable is present.

Configuring options and generating help
Configuring Options and Generating Help
=======================================

.. php:class:: ConsoleOptionParser
Expand Down Expand Up @@ -420,7 +420,7 @@ methods for easily setting multiple options/arguments at once.::
return $parser;
}

Configuring an option parser with the fluent interface
Configuring an Option Parser with the Fluent Interface
------------------------------------------------------

All of the methods that configure an option parser can be chained,
Expand Down Expand Up @@ -477,7 +477,7 @@ Calling with no arguments will return the current value::
// read the current value
$parser->epilog();

Adding arguments
Adding Arguments
----------------

.. php:method:: addArgument($name, $params = array())
Expand Down Expand Up @@ -518,7 +518,7 @@ to add multiple arguments at once.::
As with all the builder methods on ConsoleOptionParser, addArguments
can be used as part of a fluent method chain.

Validating arguments
Validating Arguments
--------------------

When creating positional arguments, you can use the ``required`` flag, to
Expand Down Expand Up @@ -591,7 +591,7 @@ to add multiple options at once.::
As with all the builder methods on ConsoleOptionParser, addOptions is can be used
as part of a fluent method chain.

Validating options
Validating Options
------------------

Options can be provided with a set of choices much like positional arguments
Expand All @@ -603,7 +603,7 @@ for an option. All other values will raise an ``InvalidArgumentException``::
'choices' => array('working', 'theirs', 'mine')
));

Using boolean options
Using Boolean Options
---------------------

Options can be defined as boolean options, which are useful when you need to create
Expand All @@ -627,7 +627,7 @@ checks for boolean flags::
Since the boolean options are always defined as ``true`` or
``false`` you can omit additional check methods.

Adding subcommands
Adding Subcommands
------------------

.. php:method:: addSubcommand($name, $options = array())
Expand Down Expand Up @@ -666,7 +666,7 @@ When defining a subcommand you can use the following options:

Adding subcommands can be done as part of a fluent method chain.

Building a ConsoleOptionParser from an array
Building a ConsoleOptionParser from an Array
--------------------------------------------

.. php:method:: buildFromArray($spec)
Expand Down Expand Up @@ -713,7 +713,7 @@ use. You can also use buildFromArray on its own, to build an option parser::
));
}

Getting help from shells
Getting Help from Shells
------------------------

With the addition of ConsoleOptionParser getting help from shells is done
Expand All @@ -731,7 +731,7 @@ you can get help for those in a similar fashion::

This would get you the help specific to bake's model task.

Getting help as XML
Getting Help as XML
-------------------

When building automated tools or development tools that need to interact
Expand Down Expand Up @@ -793,7 +793,7 @@ would look like:
</arguments>
</shell>
Routing in shells / CLI
Routing in Shells / CLI
=======================

In command-line interface (CLI), specifically your shells and tasks, ``env('HTTP_HOST')`` and
Expand Down Expand Up @@ -983,7 +983,7 @@ Shell API
* ``wordWrap`` Only wrap on words breaks (spaces) Defaults to true.
* ``indent`` Indent the text with the string provided. Defaults to null.

More topics
More Topics
===========

.. toctree::
Expand Down
10 changes: 5 additions & 5 deletions en/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ controller callbacks for best results::
parent::beforeFilter();
}

Request parameters
Request Parameters
==================

When a request is made to a CakePHP application, CakePHP's :php:class:`Router` and
Expand All @@ -86,7 +86,7 @@ object. CakePHP puts all of the important request information into the
``$this->request`` property. See the section on
:ref:`cake-request` for more information on the CakePHP request object.

Controller actions
Controller Actions
==================

Controller actions are responsible for converting the request parameters into a
Expand Down Expand Up @@ -161,7 +161,7 @@ cover some of the core attributes and methods provided by CakePHP's controllers.

.. _controller-life-cycle:

Request Life-cycle callbacks
Request Life-cycle Callbacks
============================

.. php:class:: Controller
Expand Down Expand Up @@ -291,7 +291,7 @@ rendered from the controller.
The ``$layout`` parameter allows you to specify the layout the
view is rendered in.

Rendering a specific view
Rendering a Specific View
~~~~~~~~~~~~~~~~~~~~~~~~~

In your controller you may want to render a different view than
Expand Down Expand Up @@ -595,7 +595,7 @@ own sections in the manual.
understand at first. The chapter should start with some example controllers
and what they do.

More on controllers
More on Controllers
===================

.. toctree::
Expand Down
6 changes: 3 additions & 3 deletions en/deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Deployment
Once your application is complete, or even before that you'll want to deploy it.
There are a few things you should do when deploying a CakePHP application.

Check your security
Check Your Security
===================

If you're throwing your application out into the wild, it's a good idea to make
Expand All @@ -16,7 +16,7 @@ and ensuring data consistency/integrity. Check that only your ``webroot`` direct
publicly visible, and that your secrets (such as your app salt, and any security
keys) are private and unique as well!

Set document root
Set Document Root
=================

Setting the document root correctly on your application is an important step to
Expand Down Expand Up @@ -69,7 +69,7 @@ And then you can set the debug level dynamically in ``core.php``::

.. _symlink-assets:

Improve your application's performance
Improve Your Application's Performance
======================================

Since handling static assets, such as images, JavaScript and CSS files of plugins,
Expand Down
2 changes: 1 addition & 1 deletion en/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CakePHP library, uncomment the section using ``Cake\Core\ClassLoader`` in
You should now be able to visit the path to where you installed your CakePHP
application and see the setup traffic lights.

Keeping up to date with the latest CakePHP changes
Keeping Up To Date with the Latest CakePHP Changes
--------------------------------------------------

If you want to keep current with the latest changes in CakePHP you can
Expand Down
2 changes: 1 addition & 1 deletion en/installation/url-rewriting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Once the web.config file is created with the correct IIS-friendly
rewrite rules, CakePHP's links, CSS, JavaScipt, and rerouting should work
correctly.

I don't / can't use URL rewriting
I Don't / Can't Use URL Rewriting
=================================

If you don't want to or can't use URL rewriting on your webserver,
Expand Down
4 changes: 2 additions & 2 deletions en/orm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ database connections <database-configuration>`.
:doc:`/appendices/orm-migration` for important differences between CakePHP 3.0
and older versions of CakePHP.

Quick example
Quick Example
=============

To get started you don't have to write any code. If you've followed the CakePHP
Expand Down Expand Up @@ -103,7 +103,7 @@ you need to customize which entity a table uses you can use the
See the chapters on :ref:`table-objects` and :ref:`entities` for more information
on how to use table objects and entities in your application.

More information
More Information
================

.. toctree::
Expand Down
12 changes: 6 additions & 6 deletions en/orm/behaviors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ Behaviors

.. TODO:: Introduction/overview

Using behaviors
Using Behaviors
===============

.. include:: ./table-objects.rst
:start-after: start-behaviors
:end-before: end-behaviors

Core behaviors
Core Behaviors
==============


.. include:: ../core-libraries/toc-behaviors.rst
:start-after: start-toc
:end-before: end-toc

Creating a behavior
Creating a Behavior
===================

* Where behaviors live
Expand All @@ -27,17 +27,17 @@ Creating a behavior
* Taking options/configuration


Defining mixin methods
Defining Mixin Methods
----------------------

* Simple public method - slug

Defining finders
Defining Finders
----------------

* Find by slug

Defining event listeners
Defining Event Listeners
------------------------

* BeforeSave - convert field -> slug.
Loading

0 comments on commit e8cc816

Please sign in to comment.