added user page

This commit is contained in:
dev-chiefworks
2022-10-15 11:50:24 -04:00
parent 421d9a937e
commit bcbc36bcf0
3 changed files with 53 additions and 1 deletions
+3
View File
@@ -54,6 +54,9 @@ $routes->get('/vmedia/show', 'Tools::vmedia');
$routes->get('/printables/(:alphanum)', 'Printables::show/$1', ['as' => 'printables_request_show']);
$routes->get('/mypage/(:alphanum)', 'Mypage::show/$1');
$routes->get('/page/(:alphanum)', 'Mypage::show/$1');
/*
* --------------------------------------------------------------------
* Additional Routing
+49
View File
@@ -0,0 +1,49 @@
<?php
namespace App\Controllers;
class Mypage extends BaseController
{
public function index()
{
echo "Ameye 001";
// return view('tools/index');
}
public function show(string $userPageName)
{
$data = [];
echo "userPageName";
//$mModel =new MathsModel();
// $mModel =model('MathsModel'); // MathsModel();
// $data['result'] = $mModel->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()
]);
*/
//return view('printables/index', $data);
}
}
+1 -1
View File
@@ -14,6 +14,6 @@ services:
- ./:/var/www/html
- ./apache_log:/var/log/apache2
ports:
- 8085:80
- 8985:80
volumes:
src: