diff --git a/app/Config/Routes.php b/app/Config/Routes.php index d1b2a77..bb9c1e7 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -44,6 +44,11 @@ $routes->get('/tools', 'Tools::index'); $routes->get('/blog', 'Home::blog'); + +$routes->get('/vmedia/show', 'Tools::vmedia'); + +$routes->get('/printables/(:alphanum)', 'Printables::show/$1', ['as' => 'printables_request_show']); + /* * -------------------------------------------------------------------- * Additional Routing diff --git a/app/Controllers/Printables.php b/app/Controllers/Printables.php new file mode 100644 index 0000000..d53b208 --- /dev/null +++ b/app/Controllers/Printables.php @@ -0,0 +1,46 @@ +PageData($printableCode); + /* + + + try { + list($practiceRequests) = AuxPaceClient::getPracticeRequestList(1, 0, $practiceCode); + } catch (Exception $exception) { + session()->setFlashdata('error', $exception->getMessage()); + return redirect()->to(route_to('practice_request_index')); + } + + $servers = array_filter( + AuxPaceClient::getPracticeServerList(), + fn ($server) => $server['status'] === "1" + ); + + return view('practice_requests/show', [ + 'application' => $practiceRequests[0], + 'servers' => $servers, + 'databaseServerTemplates' => AuxPaceClient::getDatabaseServerTemplateList() + ]); +*/ + } + +} \ No newline at end of file diff --git a/app/Controllers/Tools.php b/app/Controllers/Tools.php index bd31ceb..aba074c 100644 --- a/app/Controllers/Tools.php +++ b/app/Controllers/Tools.php @@ -10,5 +10,8 @@ class Tools extends BaseController return view('tools/index'); } + public function vmedia(){ + return view('vmedia/index'); + } } \ No newline at end of file diff --git a/app/Models/MathsModel.php b/app/Models/MathsModel.php new file mode 100644 index 0000000..db13f2a --- /dev/null +++ b/app/Models/MathsModel.php @@ -0,0 +1,21 @@ +Video Tutorials - View All Videos + Visit Blog @@ -78,7 +78,7 @@ - + diff --git a/app/Views/layouts/homelayout2.php b/app/Views/layouts/homelayout2.php index 06570a3..f8e9154 100644 --- a/app/Views/layouts/homelayout2.php +++ b/app/Views/layouts/homelayout2.php @@ -2,9 +2,13 @@