Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2-widgets2-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hrzg
yii2-widgets2-module
Commits
322dd563
Commit
322dd563
authored
Jun 24, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seed settings
parent
ebd4adfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
m160624_011345_settings.php
src/migrations/m160624_011345_settings.php
+21
-0
No files found.
src/migrations/m160624_011345_settings.php
0 → 100644
View file @
322dd563
<?php
use
yii\db\Migration
;
class
m160624_011345_settings
extends
Migration
{
public
function
up
()
{
Yii
::
$app
->
settings
->
set
(
'availablePhpClasses'
,
'{"hrzg\\\widget\\\widgets\\\TwigTemplate": "Twig layout"}'
,
'widgets'
,
'object'
);
return
true
;
}
public
function
down
()
{
Yii
::
$app
->
settings
->
delete
(
'availablePhpClasses'
,
'widgets'
);
return
true
;
}
}
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