From 1f3b737abd323c2e46b84cf4ea1361d561c3a8ae Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Feb 2017 15:02:10 +0200 Subject: [PATCH] test new routing --- app/library/App/Bootstrap/RouteBootstrap.php | 8 ++++++++ app/views/general/test.phtml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 0 deletions(-) create mode 100644 app/views/general/test.phtml diff --git a/app/library/App/Bootstrap/RouteBootstrap.php b/app/library/App/Bootstrap/RouteBootstrap.php index 5fca751..c454b01 100755 --- a/app/library/App/Bootstrap/RouteBootstrap.php +++ b/app/library/App/Bootstrap/RouteBootstrap.php @@ -39,5 +39,13 @@ class RouteBootstrap implements BootstrapInterface $view->setVar('documentationPath', $config->hostName . '/export/documentation.json'); return $view->render('general/documentation'); }); + + $api->get('/test.html', function() use ($api) { + + /** @var \Phalcon\Mvc\View\Simple $view */ + $view = $api->di->get(Services::VIEW); + + return $view->render('general/index'); + }); } } \ No newline at end of file diff --git a/app/views/general/test.phtml b/app/views/general/test.phtml new file mode 100644 index 0000000..5daf184 --- /dev/null +++ b/app/views/general/test.phtml @@ -0,0 +1,49 @@ + + + + + + Phalcon REST Boilerplate + + + +
+ + + + + + +

It is testing.

+
+ + \ No newline at end of file -- libgit2 0.21.4