Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
da179e3b
Commit
da179e3b
authored
Aug 23, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor text adjustments
parent
d8669124
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tutorial-console.md
docs/guide/tutorial-console.md
+5
-5
No files found.
docs/guide/tutorial-console.md
View file @
da179e3b
...
@@ -77,8 +77,8 @@ file via the `appconfig` option when executing the command:
...
@@ -77,8 +77,8 @@ file via the `appconfig` option when executing the command:
yii <route> --appconfig=path/to/config.php ...
yii <route> --appconfig=path/to/config.php ...
```
```
>
Note: When specifying in console commands * as an input argument you should quote as "*", to avoid executing it as a shell command on
>
**Note**: When using `*` in console don't forget to quote it as `"*"` in order to avoid executing it as a shell
some platforms
.
> command
.
Creating your own console commands
Creating your own console commands
...
@@ -155,7 +155,7 @@ public function actionIndex()
...
@@ -155,7 +155,7 @@ public function actionIndex()
}
}
```
```
There are some predefined cons
ole controller constants for this cases like the following
:
There are some predefined cons
tants you can use
:
-
Controller::EXIT_CODE_NORMAL
;
-
`Controller::EXIT_CODE_NORMAL`
with value of
`0`
;
-
Controller::EXIT_CODE_ERROR
.
-
`Controller::EXIT_CODE_ERROR`
with value of
`1`
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment