Skip to content

Commit

Permalink
Create a simple controller to implement first layout
Browse files Browse the repository at this point in the history
  • Loading branch information
alex7r committed Sep 9, 2018
1 parent d976ccf commit bdc88a4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
19 changes: 19 additions & 0 deletions admin/Controller/Roadmap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Copyright (c) 2018. JoomPlace, all rights reserved
*/

namespace Joomplace\Component\Roadmap\Admin\Controller;


use Joomplace\X\Controller;

class Roadmap extends Controller
{
public function display($cachable = false, $urlparams = array())
{
echo "<pre>";
print_r("Simple display task for Roadmap");
echo "</pre>";
}
}
11 changes: 11 additions & 0 deletions admin/Dispatcher.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Copyright (c) 2018. JoomPlace, all rights reserved
*/

namespace Joomplace\Component\Roadmap\Admin;

class Dispatcher extends \Joomplace\X\Dispatcher
{
public static $namespace = 'Joomplace\\Component\\Roadmap';
}
6 changes: 3 additions & 3 deletions admin/roadmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

namespace Joomplace\Component\Roadmap\Admin;

echo "<pre>";
print_r('Say hello to the world of the simpliest components!');
echo "</pre>";
use Joomplace\X\ComponentStarter;

ComponentStarter::startup(Dispatcher::class, 'Roadmap', __DIR__ . DIRECTORY_SEPARATOR . 'migrations');

0 comments on commit bdc88a4

Please sign in to comment.