Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
acd66326
Commit
acd66326
authored
Oct 25, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
63931e58
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
backend/config/main.php
backend/config/main.php
+2
-0
common/modules/bids/controllers/BidAdminController.php
common/modules/bids/controllers/BidAdminController.php
+5
-0
common/modules/bids/models/BidFile.php
common/modules/bids/models/BidFile.php
+2
-2
No files found.
backend/config/main.php
View file @
acd66326
...
...
@@ -130,6 +130,8 @@ return [
'showScriptName'
=>
false
,
'enableStrictParsing'
=>
true
,
'rules'
=>
[
'bids/bod-admin/download/<file>'
=>
'bids/bod-admin/download'
,
'<module_id>/settings/manage'
=>
'settings/manage'
,
'<module_id>/settings/create'
=>
'settings/create'
,
'<module_id>/settings/update/<id>'
=>
'settings/update'
,
...
...
common/modules/bids/controllers/BidAdminController.php
View file @
acd66326
...
...
@@ -108,6 +108,11 @@ class BidAdminController extends AdminController
return
$this
->
redirect
([
'/bids/bid-admin/manage'
]);
}
public
function
actionDownload
(
$file
)
{
}
/**
* Finds the Bid model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
...
...
common/modules/bids/models/BidFile.php
View file @
acd66326
...
...
@@ -81,11 +81,11 @@ class BidFile extends \common\components\ActiveRecordModel
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
()
{
return
Yii
::
getAlias
(
'@backend
/web
'
)
.
self
::
FILE_FOLDER
;
return
Yii
::
getAlias
(
'@backend'
)
.
self
::
FILE_FOLDER
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment