Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace mdm\admin\controllers;
use Yii;
/**
* DefaultController
*
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
* @since 1.0
*/
class DefaultController extends \yii\web\Controller
{
/**
* Action index
*/
public function actionIndex($page = 'README.md')
{
if (strpos($page, '.png') !== false) {
$file = Yii::getAlias("@mdm/admin/{$page}");
return Yii::$app->getResponse()->sendFile($file);
}
return $this->render('index', ['page' => $page]);
}
}