added parsedown singleton reference as $md
This commit is contained in:
parent
c439d771f5
commit
05378a735f
@ -1,8 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require '../lib/vendor/autoload.php';
|
require '../lib/autoload.php';
|
||||||
|
|
||||||
$f3 = \Base::instance();
|
$f3 = \Base::instance();
|
||||||
|
/**
|
||||||
|
* Not required yet
|
||||||
|
*/
|
||||||
|
// $htmlpurifier = new \HTMLPurifier();
|
||||||
|
// $htmlpurifier->purify($input);
|
||||||
|
$md = \Parsedown::instance();
|
||||||
|
|
||||||
|
|
||||||
$f3->set('DEBUG', 3); // development debug
|
$f3->set('DEBUG', 3); // development debug
|
||||||
$f3->config('../app/.env.cfg');
|
$f3->config('../app/.env.cfg');
|
||||||
|
|
||||||
@ -44,16 +52,16 @@ $f3->route('POST /ticket/@id/update', 'TicketController->update'); //
|
|||||||
|
|
||||||
// knowledgebase
|
// knowledgebase
|
||||||
$f3->route('GET /kb', 'KBController->index');
|
$f3->route('GET /kb', 'KBController->index');
|
||||||
|
$f3->route('GET /kb/@id', 'KBController->view');
|
||||||
$f3->route('GET /kb/create', 'KBController->createForm');
|
$f3->route('GET /kb/create', 'KBController->createForm');
|
||||||
$f3->route('POST /kb/create', 'KBController->create');
|
$f3->route('POST /kb/create', 'KBController->create');
|
||||||
$f3->route('GET /kb/@id', 'KBController->view');
|
|
||||||
$f3->route('GET /kb/@id/edit', 'KBController->editForm');
|
$f3->route('GET /kb/@id/edit', 'KBController->editForm');
|
||||||
$f3->route('POST /kb/@id/edit', 'KBControllerKB->edit'); // should this be update - "crud"?
|
$f3->route('POST /kb/@id/update', 'KBController->update'); // should this be update - "crud"?
|
||||||
|
|
||||||
// tags
|
// tags
|
||||||
$f3->route('GET /tags', 'TagController->index');
|
$f3->route('GET /tags', 'TagController->index');
|
||||||
$f3->route('GET /tag/create', 'Tag->createForm');
|
$f3->route('GET /tag/create', 'TagController->createForm');
|
||||||
$f3->route('POST /tag/create', 'Tag->create');
|
$f3->route('POST /tag/create', 'TagController->create');
|
||||||
|
|
||||||
|
|
||||||
// dashboard
|
// dashboard
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user