added user page
This commit is contained in:
@@ -54,6 +54,9 @@ $routes->get('/vmedia/show', 'Tools::vmedia');
|
|||||||
|
|
||||||
$routes->get('/printables/(:alphanum)', 'Printables::show/$1', ['as' => 'printables_request_show']);
|
$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
|
* Additional Routing
|
||||||
|
|||||||
@@ -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
@@ -14,6 +14,6 @@ services:
|
|||||||
- ./:/var/www/html
|
- ./:/var/www/html
|
||||||
- ./apache_log:/var/log/apache2
|
- ./apache_log:/var/log/apache2
|
||||||
ports:
|
ports:
|
||||||
- 8085:80
|
- 8985:80
|
||||||
volumes:
|
volumes:
|
||||||
src:
|
src:
|
||||||
Reference in New Issue
Block a user