function code($code = 404) {
http_response_code($code);
}
<?php if (file_exists('/path/to/web/mp3/' . $model->name)): ?>
<audio id='player' controls="controls">
<source src="<?php echo Html::encode('../web/mp3/' . $model->name) ?>" type="audio/ogg" />
<source src="<?php echo Html::encode('../web/mp3/' . $model->name) ?>" type="audio/mp3" />
</audio>
<?php endif; ?>
<?php if ($model->name): ?>
<audio id='player' controls="controls">
<source src="<?php echo Html::encode('../web/mp3/' . $model->name) ?>" type="audio/ogg" />
<source src="<?php echo Html::encode('../web/mp3/' . $model->name) ?>" type="audio/mp3" />
</audio>
<?php endif; ?>