Skip to content

Commit f687b11

Browse files
committed
Create shieldonController.tpl
1 parent ad95faa commit f687b11

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
namespace controllers;
3+
4+
/**
5+
* Controller Shieldon
6+
*/
7+
class %controllerName% extends \Ubiquity\controllers\Controller {
8+
9+
/**
10+
* %route%
11+
*/
12+
public function index() {
13+
// Get Firewall instance from Shieldon Container.
14+
$firewall = \Shieldon\Container::get('firewall');
15+
16+
// Get into the Firewall Panel.
17+
$controlPanel = new \Shieldon\FirewallPanel($firewall);
18+
%csrf%
19+
$controlPanel->entry();
20+
}
21+
}

0 commit comments

Comments
 (0)