routing
This commit is contained in:
18
app/controllers/MainController.php
Normal file
18
app/controllers/MainController.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace app\controllers;
|
||||
|
||||
class MainController
|
||||
{
|
||||
|
||||
public function actionIndex(): void
|
||||
{
|
||||
echo "<h1>Главная страница</h1>";
|
||||
}
|
||||
|
||||
public function actionExample(): void
|
||||
{
|
||||
echo "<h1>Example</h1>";
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user