mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	Fix #20513: Fix code examples in PHPDoc
This commit is contained in:
		| @ -63,7 +63,7 @@ class Controller extends \yii\base\Controller | ||||
|      * the [[Response::$format|format]] and setting the [[Response::$data|data]] that should | ||||
|      * be formatted. A common usage will be: | ||||
|      * | ||||
|      * ```php | ||||
|      * ``` | ||||
|      * return $this->asJson($data); | ||||
|      * ``` | ||||
|      * | ||||
| @ -89,7 +89,7 @@ class Controller extends \yii\base\Controller | ||||
|      * the [[Response::$format|format]] and setting the [[Response::$data|data]] that should | ||||
|      * be formatted. A common usage will be: | ||||
|      * | ||||
|      * ```php | ||||
|      * ``` | ||||
|      * return $this->asXml($data); | ||||
|      * ``` | ||||
|      * | ||||
| @ -346,7 +346,7 @@ class Controller extends \yii\base\Controller | ||||
|      * | ||||
|      * You can use it in an action by returning the [[Response]] directly: | ||||
|      * | ||||
|      * ```php | ||||
|      * ``` | ||||
|      * // stop executing this action and redirect to login page | ||||
|      * return $this->redirect(['login']); | ||||
|      * ``` | ||||
| @ -377,7 +377,7 @@ class Controller extends \yii\base\Controller | ||||
|      * | ||||
|      * You can use this method in an action by returning the [[Response]] directly: | ||||
|      * | ||||
|      * ```php | ||||
|      * ``` | ||||
|      * // stop executing this action and redirect to home page | ||||
|      * return $this->goHome(); | ||||
|      * ``` | ||||
| @ -394,7 +394,7 @@ class Controller extends \yii\base\Controller | ||||
|      * | ||||
|      * You can use this method in an action by returning the [[Response]] directly: | ||||
|      * | ||||
|      * ```php | ||||
|      * ``` | ||||
|      * // stop executing this action and redirect to last visited page | ||||
|      * return $this->goBack(); | ||||
|      * ``` | ||||
| @ -418,7 +418,7 @@ class Controller extends \yii\base\Controller | ||||
|      * | ||||
|      * You can use it in an action by returning the [[Response]] directly: | ||||
|      * | ||||
|      * ```php | ||||
|      * ``` | ||||
|      * // stop executing this action and refresh the current page | ||||
|      * return $this->refresh(); | ||||
|      * ``` | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Maksim Spirkov
					Maksim Spirkov