tg main page

This commit is contained in:
2025-01-03 18:07:07 +03:00
parent 7e9d2cf5a7
commit 6462a98e6c
108 changed files with 16234 additions and 1 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace app\modules\tgbot\controllers;
use kernel\Controller;
class TgMainController extends Controller
{
protected function init(): void
{
parent::init();
$this->cgView->viewPath = APP_DIR . "/modules/tgbot/views/tgbot/main/";
$this->cgView->layout = "main.php";
$this->cgView->layoutPath = APP_DIR . "/modules/tgbot/views/tgbot/layout/";
$this->cgView->addVarToLayout("resources", "/resources/main");
}
public function actionMain(): void
{
$this->cgView->render("index.php");
}
}