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
e9701817
Commit
e9701817
authored
Jun 29, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test controller & views
parent
37f04cbf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
TestController.php
src/controllers/TestController.php
+16
-0
index.php
src/views/default/index.php
+9
-0
index.twig
src/views/test/index.twig
+6
-0
No files found.
src/controllers/TestController.php
0 → 100644
View file @
e9701817
<?php
namespace
hrzg\widget\controllers
;
class
TestController
extends
\yii\web\Controller
{
public
function
actionIndex
()
{
return
$this
->
render
(
'index.twig'
);
}
public
function
actionWithParam
()
{
return
$this
->
render
(
'index.twig'
);
}
}
src/views/default/index.php
View file @
e9701817
...
...
@@ -57,5 +57,14 @@ use yii\helpers\Html;
<?=
Html
::
a
(
'Online documentation'
,
'https://git.hrzg.de/hrzg/yii2-widgets2-module'
,
[
'class'
=>
'btn btn-info'
])
?>
<?php
\insolita\wgadminlte\Box
::
end
()
?>
<?php
\insolita\wgadminlte\Box
::
begin
()
?>
<?=
Html
::
a
(
'Test page index'
,
[
'test/index'
],
[
'class'
=>
'btn btn-warning'
])
?>
<?=
Html
::
a
(
'Test page-1 (with parameter)'
,
[
'test/with-param'
,
'id'
=>
'page-1'
],
[
'class'
=>
'btn btn-warning'
])
?>
<?=
Html
::
a
(
'Test page-2 (with parameter)'
,
[
'test/with-param'
,
'id'
=>
'page-2'
],
[
'class'
=>
'btn btn-warning'
])
?>
<?php
\insolita\wgadminlte\Box
::
end
()
?>
src/views/test/index.twig
0 → 100644
View file @
e9701817
{{
use
(
'hrzg/widget/widgets'
)
}}
{{
widget_container_widget
(
{
id
:
'header'
}
)
}}
<div
class=
"container-fluid"
>
{{
widget_container_widget
(
{
id
:
'container'
}
)
}}
</div>
\ 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