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
075bd7ee
Commit
075bd7ee
authored
Aug 13, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Installation part to app template docs
parent
a61d9dcc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
2 deletions
+47
-2
apps-advanced.md
docs/guide/apps-advanced.md
+32
-1
apps-basic.md
docs/guide/apps-basic.md
+15
-1
No files found.
docs/guide/apps-advanced.md
View file @
075bd7ee
...
@@ -8,7 +8,38 @@ database, signup and password restore out of the box.
...
@@ -8,7 +8,38 @@ database, signup and password restore out of the box.
Installation
Installation
------------
------------
TBD
### Install via Composer
If you do not have
[
Composer
](
http://getcomposer.org/
)
, you may download it from
[
http://getcomposer.org/
](
http://getcomposer.org/
)
or run the following command on Linux/Unix/MacOS:
~~~
curl -s http://getcomposer.org/installer | php
~~~
You can then install the application using the following command:
~~~
php composer.phar create-project --stability=dev yiisoft/yii2-app-advanced yii-advanced
~~~
Getting started
---------------
After you install the application, you have to conduct the following steps to initialize
the installed application. You only need to do these once for all.
1.
Execute the
`init`
command and select
`dev`
as environment.
2.
Create a new database. It is assumed that MySQL InnoDB is used. If not, adjust
`console/migrations/m130524_201442_init.php`
.
3.
In
`common/config/params.php`
set your database details in
`components.db`
values.
Now you should be able to access:
-
the frontend using the URL
`http://localhost/yii-advanced/frontend/web/`
-
the backend using the URL
`http://localhost/yii-advanced/backend/web/`
assuming
`yii-advanced`
is directly under the document root of your Web server.
Directory structure
Directory structure
-------------------
-------------------
...
...
docs/guide/apps-basic.md
View file @
075bd7ee
...
@@ -10,7 +10,21 @@ and the login page allows users to be authenticated before accessing privileged
...
@@ -10,7 +10,21 @@ and the login page allows users to be authenticated before accessing privileged
Installation
Installation
------------
------------
TBD
If you do not have
[
Composer
](
http://getcomposer.org/
)
, you may download it from
[
http://getcomposer.org/
](
http://getcomposer.org/
)
or run the following command on Linux/Unix/MacOS:
~~~
curl -s http://getcomposer.org/installer | php
~~~
You can then install the Bootstrap Application using the following command:
~~~
php composer.phar create-project --stability=dev yiisoft/yii2-app-basic yii-basic
~~~
Now you should be able to access the application using the URL
`http://localhost/yii-basic/web/`
,
assuming
`yii-basic`
is directly under the document root of your Web server.
Directory structure
Directory structure
-------------------
-------------------
...
...
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