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.

33 lines
741 B

<?php
/**
* Created by IntelliJ IDEA.
* User: luwei
* Date: 2017/10/25
* Time: 11:13
*/
namespace app\controllers;
use app\models\PtNoticeSender;
use app\models\User;
class SiteController extends Controller
{
public function actionIndex()
{
$install_lock_file = \Yii::$app->basePath . '/install.lock.php';
if (!file_exists($install_lock_file)) {
$this->redirect(\Yii::$app->urlManager->createUrl(['install']))->send();
} else {
$this->redirect(\Yii::$app->urlManager->createUrl(['admin']))->send();
}
}
public function actionTest()
{
$tpl = new PtNoticeSender(null,1);
$tpl->sendSuccessNotice(102);
}
}