/** * Sends the file associated with the given model to the user using x-sendfile. * @param File $file the file model. * @param array $options additional options. * @see CHttpRequest::xSendFile */ public function xSendFile($file, $options = array()) { Yii::app()->request->xSendFile($file->resolvePath(), $options); }