Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4e771052
Commit
4e771052
authored
Jan 28, 2014
by
Alexander Kochetov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rollback $params variable
parent
e1459d40
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
main.php
apps/advanced/backend/config/main.php
+8
-6
main.php
apps/advanced/common/config/main.php
+0
-6
main.php
apps/advanced/console/config/main.php
+8
-6
main.php
apps/advanced/frontend/config/main.php
+8
-6
No files found.
apps/advanced/backend/config/main.php
View file @
4e771052
<?php
<?php
$params
=
array_merge
(
require
(
__DIR__
.
'/../../common/config/params.php'
),
require
(
__DIR__
.
'/../../common/config/params-local.php'
),
require
(
__DIR__
.
'/params.php'
),
require
(
__DIR__
.
'/params-local.php'
)
);
return
[
return
[
'id'
=>
'app-backend'
,
'id'
=>
'app-backend'
,
'basePath'
=>
dirname
(
__DIR__
),
'basePath'
=>
dirname
(
__DIR__
),
...
@@ -23,10 +30,5 @@ return [
...
@@ -23,10 +30,5 @@ return [
'errorAction'
=>
'site/error'
,
'errorAction'
=>
'site/error'
,
],
],
],
],
'params'
=>
array_merge
(
'params'
=>
$params
,
require
(
__DIR__
.
'/../../common/config/params.php'
),
require
(
__DIR__
.
'/../../common/config/params-local.php'
),
require
(
__DIR__
.
'/params.php'
),
require
(
__DIR__
.
'/params-local.php'
)
),
];
];
apps/advanced/common/config/main.php
View file @
4e771052
<?php
<?php
Yii
::
setAlias
(
'common'
,
dirname
(
__DIR__
));
Yii
::
setAlias
(
'frontend'
,
dirname
(
dirname
(
__DIR__
))
.
'/frontend'
);
Yii
::
setAlias
(
'backend'
,
dirname
(
dirname
(
__DIR__
))
.
'/backend'
);
Yii
::
setAlias
(
'console'
,
dirname
(
dirname
(
__DIR__
))
.
'/console'
);
return
[
return
[
'vendorPath'
=>
dirname
(
dirname
(
__DIR__
))
.
'/vendor'
,
'vendorPath'
=>
dirname
(
dirname
(
__DIR__
))
.
'/vendor'
,
'extensions'
=>
require
(
__DIR__
.
'/../../vendor/yiisoft/extensions.php'
),
'extensions'
=>
require
(
__DIR__
.
'/../../vendor/yiisoft/extensions.php'
),
...
...
apps/advanced/console/config/main.php
View file @
4e771052
<?php
<?php
$params
=
array_merge
(
require
(
__DIR__
.
'/../../common/config/params.php'
),
require
(
__DIR__
.
'/../../common/config/params-local.php'
),
require
(
__DIR__
.
'/params.php'
),
require
(
__DIR__
.
'/params-local.php'
)
);
return
[
return
[
'id'
=>
'app-console'
,
'id'
=>
'app-console'
,
'basePath'
=>
dirname
(
__DIR__
),
'basePath'
=>
dirname
(
__DIR__
),
...
@@ -14,10 +21,5 @@ return [
...
@@ -14,10 +21,5 @@ return [
],
],
],
],
],
],
'params'
=>
array_merge
(
'params'
=>
$params
,
require
(
__DIR__
.
'/../../common/config/params.php'
),
require
(
__DIR__
.
'/../../common/config/params-local.php'
),
require
(
__DIR__
.
'/params.php'
),
require
(
__DIR__
.
'/params-local.php'
)
),
];
];
apps/advanced/frontend/config/main.php
View file @
4e771052
<?php
<?php
$params
=
array_merge
(
require
(
__DIR__
.
'/../../common/config/params.php'
),
require
(
__DIR__
.
'/../../common/config/params-local.php'
),
require
(
__DIR__
.
'/params.php'
),
require
(
__DIR__
.
'/params-local.php'
)
);
return
[
return
[
'id'
=>
'app-frontend'
,
'id'
=>
'app-frontend'
,
'basePath'
=>
dirname
(
__DIR__
),
'basePath'
=>
dirname
(
__DIR__
),
...
@@ -21,10 +28,5 @@ return [
...
@@ -21,10 +28,5 @@ return [
'errorAction'
=>
'site/error'
,
'errorAction'
=>
'site/error'
,
],
],
],
],
'params'
=>
array_merge
(
'params'
=>
$params
,
require
(
__DIR__
.
'/../../common/config/params.php'
),
require
(
__DIR__
.
'/../../common/config/params-local.php'
),
require
(
__DIR__
.
'/params.php'
),
require
(
__DIR__
.
'/params-local.php'
)
),
];
];
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