Initial commit: new project structure and scripts
This commit is contained in:
20
Controller/TaskController.php
Normal file
20
Controller/TaskController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace ppb\Controller;
|
||||
|
||||
use ppb\Model\TaskModel;
|
||||
|
||||
class TaskController {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function writeTask($data): void
|
||||
{
|
||||
$model = new TaskModel();
|
||||
|
||||
$model->insertTask($data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user