fix

parent 63931e58
...@@ -130,6 +130,8 @@ return [ ...@@ -130,6 +130,8 @@ return [
'showScriptName' => false, 'showScriptName' => false,
'enableStrictParsing' => true, 'enableStrictParsing' => true,
'rules' => [ 'rules' => [
'bids/bod-admin/download/<file>' => 'bids/bod-admin/download',
'<module_id>/settings/manage' => 'settings/manage', '<module_id>/settings/manage' => 'settings/manage',
'<module_id>/settings/create' => 'settings/create', '<module_id>/settings/create' => 'settings/create',
'<module_id>/settings/update/<id>' => 'settings/update', '<module_id>/settings/update/<id>' => 'settings/update',
......
...@@ -108,6 +108,11 @@ class BidAdminController extends AdminController ...@@ -108,6 +108,11 @@ class BidAdminController extends AdminController
return $this->redirect(['/bids/bid-admin/manage']); return $this->redirect(['/bids/bid-admin/manage']);
} }
public function actionDownload($file)
{
}
/** /**
* Finds the Bid model based on its primary key value. * Finds the Bid model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown. * If the model is not found, a 404 HTTP exception will be thrown.
......
...@@ -81,11 +81,11 @@ class BidFile extends \common\components\ActiveRecordModel ...@@ -81,11 +81,11 @@ class BidFile extends \common\components\ActiveRecordModel
public function getUrl() public function getUrl()
{ {
return Yii::$app->params['backUrl'] . self::FILE_FOLDER . $this->filename; return Yii::$app->params['backUrl'] . '/bids/bid-admin/download/' . $this->filename;
} }
public static function path() public static function path()
{ {
return Yii::getAlias('@backend/web') . self::FILE_FOLDER; return Yii::getAlias('@backend') . self::FILE_FOLDER;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment