base\Application end()

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

doc_Yii
2016-10-30 16:50:46
Comments
Leave a Comment

Please login to continue.