Browse Source

Minor text adjustments

tags/2.0.0-rc
Alexander Makarov 10 years ago
parent
commit
da179e3bd4
  1. 10
      docs/guide/tutorial-console.md

10
docs/guide/tutorial-console.md

@ -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()
} }
``` ```
There are some predefined console controller constants for this cases like the following: There are some predefined constants 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`.

Loading…
Cancel
Save