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
8325f7a8
Commit
8325f7a8
authored
May 25, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added db component. Added configuration section to readme.
parent
75917e2c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
0 deletions
+23
-0
README.md
apps/advanced/README.md
+12
-0
main.php
apps/advanced/backstage/config/main.php
+1
-0
params.php
apps/advanced/common/config/params.php
+8
-0
main.php
apps/advanced/console/config/main.php
+1
-0
main.php
apps/advanced/frontend/config/main.php
+1
-0
No files found.
apps/advanced/README.md
View file @
8325f7a8
...
...
@@ -84,3 +84,15 @@ assuming `yii-advanced` is directly under the document root of your Web server.
### Install from an Archive File
This is not currently available. We will provide it when Yii 2 is formally released.
GETTING STARTED
---------------
After template application and its dependencies are downloaded you need to initialize it and set some config values to
match your application requirements.
1.
Execute
`install`
command selecting
`dev`
as environment.
2.
Set
`id`
value in
`console/config/main.php`
,
`frontend/config/main.php`
,
`backstage/config/main.php`
.
3.
Create new database. It is assumed that MySQL InnoDB is used. If not, adjust
`console/migrations/m130524_201442_init.php`
.
4.
In
`common/config/params.php`
set your database details in
`components.db`
values.
apps/advanced/backstage/config/main.php
View file @
8325f7a8
...
...
@@ -16,6 +16,7 @@ return array(
'modules'
=>
array
(
),
'components'
=>
array
(
'db'
=>
$params
[
'components.db'
],
'cache'
=>
$params
[
'components.cache'
],
'user'
=>
array
(
'class'
=>
'yii\web\User'
,
...
...
apps/advanced/common/config/params.php
View file @
8325f7a8
...
...
@@ -6,4 +6,11 @@ return array(
'components.cache'
=>
array
(
'class'
=>
'yii\caching\FileCache'
,
),
'components.db'
=>
array
(
'class'
=>
'yii\db\Connection'
,
'dsn'
=>
'mysql:host=localhost;dbname=yii2advanced'
,
'username'
=>
'root'
,
'password'
=>
''
,
),
);
\ No newline at end of file
apps/advanced/console/config/main.php
View file @
8325f7a8
...
...
@@ -16,6 +16,7 @@ return array(
'modules'
=>
array
(
),
'components'
=>
array
(
'db'
=>
$params
[
'components.db'
],
'cache'
=>
$params
[
'components.cache'
],
'log'
=>
array
(
'class'
=>
'yii\logging\Router'
,
...
...
apps/advanced/frontend/config/main.php
View file @
8325f7a8
...
...
@@ -16,6 +16,7 @@ return array(
'modules'
=>
array
(
),
'components'
=>
array
(
'db'
=>
$params
[
'components.db'
],
'cache'
=>
$params
[
'components.cache'
],
'user'
=>
array
(
'class'
=>
'yii\web\User'
,
...
...
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