mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	@ -209,7 +209,7 @@ To learn more details about models, please refer to the [Models](structure-model
 | 
				
			|||||||
Controllers
 | 
					Controllers
 | 
				
			||||||
-----------
 | 
					-----------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Yii 2.0 uses [[yii\web\Controller]] as the base controller class, similar to `CWebController` in Yii 1.1.
 | 
					Yii 2.0 uses [[yii\web\Controller]] as the base controller class, which is similar to `CController` in Yii 1.1.
 | 
				
			||||||
[[yii\base\Action]] is the base class for action classes.
 | 
					[[yii\base\Action]] is the base class for action classes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The most obvious impact of these changes on your code is that a controller action should return the content
 | 
					The most obvious impact of these changes on your code is that a controller action should return the content
 | 
				
			||||||
 | 
				
			|||||||
@ -319,7 +319,7 @@ class Connection extends Component
 | 
				
			|||||||
        $body = '';
 | 
					        $body = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $options = [
 | 
					        $options = [
 | 
				
			||||||
            CURLOPT_USERAGENT      => 'Yii Framework 2 ' . __CLASS__,
 | 
					            CURLOPT_USERAGENT      => 'Yii Framework ' . Yii::getVersion() . __CLASS__,
 | 
				
			||||||
            CURLOPT_RETURNTRANSFER => false,
 | 
					            CURLOPT_RETURNTRANSFER => false,
 | 
				
			||||||
            CURLOPT_HEADER         => false,
 | 
					            CURLOPT_HEADER         => false,
 | 
				
			||||||
            // http://www.php.net/manual/en/function.curl-setopt.php#82418
 | 
					            // http://www.php.net/manual/en/function.curl-setopt.php#82418
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user