__construct() public method

架构函数
public __construct ( mixed $data = '', integer $code = 200, array $header = [], array $options = [] )
$data mixed 输出数据
$code integer
$header array
$options array 输出参数
コード例 #1
0
ファイル: Redirect.php プロジェクト: top-think/framework
 public function __construct($data = '', $code = 302, array $header = [], array $options = [])
 {
     parent::__construct($data, $code, $header, $options);
     $this->cacheControl('no-cache,must-revalidate');
 }