You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
435 B
26 lines
435 B
<?php
|
|
namespace Controller;
|
|
|
|
Class UserController
|
|
{
|
|
|
|
public function __construct()
|
|
{
|
|
print 'I am a controller<br>';
|
|
}
|
|
|
|
|
|
public function add(array $params): void
|
|
{
|
|
$id = $params['id'] ?? -1;
|
|
print 'using add action ; id:' . $id;
|
|
}
|
|
|
|
public function page(array $params): void
|
|
{
|
|
$page = $params['page'] ?? -1;
|
|
print 'using page action ; page : ' . $page;
|
|
}
|
|
}
|
|
|
|
?>
|