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
650440d9
Commit
650440d9
authored
Apr 17, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added info about theming widget views. Fixes #3142
parent
0842c4a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
theming.md
docs/guide/theming.md
+17
-0
No files found.
docs/guide/theming.md
View file @
650440d9
...
...
@@ -29,6 +29,23 @@ In the above `pathMap` defines where to look for view files while `baseUrl` defi
from these files. In our case
`pathMap`
is
`['@app/views' => '@app/themes/basic']`
so the themed version
for a view file
`@app/views/site/index.php`
will be
`@app/themes/basic/site/index.php`
.
### Theming widgets
In order to theme a widget view located at
`@app/widgets/currency/views/index.php`
you need the following config for
view component theme:
```
php
'components'
=>
[
'view'
=>
[
'theme'
=>
[
'pathMap'
=>
[
'@app/widgets/currency/views'
=>
'@app/themes/basic/widgets/currency'
],
],
],
],
```
With the config above you can create themed version of a widget view at
`@app/themes/basic/widgets/currency/index.php`
.
Using multiple paths
--------------------
...
...
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