Commit e9701817 authored by Tobias Munk's avatar Tobias Munk

added test controller & views

parent 37f04cbf
<?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');
}
}
......@@ -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() ?>
{{ 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment