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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
ca816adf
Commit
ca816adf
authored
Jan 21, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linked guide on 3rd party systems
parent
d623a7f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
index.md
docs/guide/index.md
+1
-0
upgrade-from-v1.md
docs/guide/upgrade-from-v1.md
+5
-0
using-3rd-party-libraries.md
docs/guide/using-3rd-party-libraries.md
+9
-0
No files found.
docs/guide/index.md
View file @
ca816adf
...
...
@@ -48,6 +48,7 @@ Extensions and 3rd party libraries
-
[
Composer
](
composer.md
)
- How to manage applications dependencies via composer
-
[
Extending Yii
](
extensions.md
)
-
[
Template engines
](
template.md
)
- Using template engines such as Smarty or Twig
-
[
Using Yii together with 3rd-Party Systems
](
using-3rd-party-libraries.md
)
- Using Yii in 3rd-Party Systems and using Yii 1 and 2 together
Security and access control
===========================
...
...
docs/guide/upgrade-from-v1.md
View file @
ca816adf
...
...
@@ -523,3 +523,8 @@ up to date updating it semi-automatically and manages autoloading for third part
these are using.
In order to learn more refer to
[
composer
](
composer.md
)
and
[
installation
](
installation.md
)
sections of the guide.
Using Yii 1.1 and 2.x together
------------------------------
Check the guide on
[
using Yii together with 3rd-Party Systems
](
using-3rd-party-libraries.md
)
on this topic.
docs/guide/using-3rd-party-libraries.md
View file @
ca816adf
...
...
@@ -36,6 +36,15 @@ In order to use both Yii1 and Yii2 you need to resolve this collision.
To do so you need to define your own 'Yii' class, which will combine content of 'Yii' from 1.x
and 'Yii' from 2.x.
When using composer you add the following to your composer.json in order to add both versions of yii to your project:
```
json
"require"
:
{
"yiisoft/yii"
:
"*"
,
"yiisoft/yii2"
:
"*"
,
},
```
Start from defining your own descendant of
[
[\yii\BaseYii
]
]:
```
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