end() public method
Terminates the application.
This method replaces the exit() function by ensuring the application life cycle is completed before terminating the application.
| public void end ( $status = 0, $response = null ) | ||
|---|---|---|
| $status | integer |
The exit status (value 0 means normal exit while other values mean abnormal exit). |
| $response | yii\base\Response |
The response to be sent. If not set, the default application $response component will be used. |
| throws | yii\base\ExitException |
if the application is in testing mode |
Please login to continue.