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
1c9cfc01
Commit
1c9cfc01
authored
Feb 20, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1578
parent
036a811e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
apps-advanced.md
docs/guide/apps-advanced.md
+26
-0
No files found.
docs/guide/apps-advanced.md
View file @
1c9cfc01
...
...
@@ -175,3 +175,29 @@ All these packages are coming from [packagist.org](https://packagist.org/) so fe
After your `composer.json` is changed you can run `php composer.phar update --prefer-dist`, wait till packages are downloaded and
installed and then just use them. Autoloading of classes will be handled automatically.
Creating links from backend to frontend
---------------------------------------
Often it's required to create links from backend application to frontend application. Since frontend application may
contain its own URL manager rules you need to duplicate that for backend application naming it differently:
```
php
return
[
'components' =>
[
'urlManager' =>
[
// here is your normal backend url manager config
],
'urlManagerFrontend' =>
[
// here is your frontend URL manager config
],
],
];
```
After it is done you can get URL poiting to frontend like the following:
```
php
echo Yii::$app->urlManagerFrontend->createUrl(...);
```
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