Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added <?php #6247

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Changes from all 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
3 changes: 3 additions & 0 deletions en/console-and-shells/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Let's create our first Command. For this example, we'll create a
simple Hello world command. In your application's **src/Command** directory create
**HelloCommand.php**. Put the following code inside it::

<?php
namespace App\Command;

use Cake\Console\Arguments;
Expand Down Expand Up @@ -47,6 +48,7 @@ You should see the following output::
Our ``execute()`` method isn't very interesting let's read some input from the
command line::

<?php
namespace App\Command;

use Cake\Console\Arguments;
Expand Down Expand Up @@ -129,6 +131,7 @@ commands. You can load models in commands, just as you would in a controller
using ``loadModel()``. The loaded models are set as properties attached to your
commands::

<?php
namespace App\Command;

use Cake\Console\Arguments;
Expand Down