parent
7092a28400
commit
5fe600cb47
@ -0,0 +1,36 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* @author Robert Strutts <Bob_586@Yahoo.com> |
||||
* @copyright (c) 2025, Robert Strutts |
||||
* @license MIT |
||||
*/ |
||||
|
||||
namespace Project\routes\app; |
||||
|
||||
use \CodeHydrater\base_controller; |
||||
|
||||
class home_routes extends base_controller { |
||||
/** |
||||
* from Routes file |
||||
* |
||||
*/ |
||||
public function test(int $id) { |
||||
$content = "The ID for Test Example is # $id"; |
||||
|
||||
$this->response->set_content($content); |
||||
return $this->response; |
||||
} |
||||
|
||||
public function demo(?string $name="Test", ?int $limit=10, ?int $page=1) { |
||||
$content = "DEMO Name: ". \CodeHydrater\bootstrap\safer_io::p($name); |
||||
$content .= "LIMIT = ". $limit; |
||||
$content .= "PAGE = ". $page; |
||||
|
||||
$this->response->set_content($content); |
||||
return $this->response; |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue