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
951da01c
Commit
951da01c
authored
Nov 29, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "Setting component defaults classwide" to docs
parent
c5108b25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
configuration.md
docs/guide/configuration.md
+16
-1
No files found.
docs/guide/configuration.md
View file @
951da01c
...
...
@@ -96,4 +96,18 @@ not be instantiated and configured at all.
Setting component defaults classwide
------------------------------------
TBD
For each component you can specifiy classwide defaults. For example, if we want to change class for all
`LinkPager`
widgets without specifying it over and over again when widget is called we can do it like the following:
```
php
\Yii
::
$objectConfig
=
[
'yii\widgets\LinkPager'
=>
[
'options'
=>
[
'class'
=>
'pagination'
,
],
],
];
```
The code above should be executed once before
`LinkPager`
widget is used. It can be done in
`index.php`
, application
config or anywhere else.
\ No newline at end of file
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