Redirection in fastadmin framework

Since it is very troublesome to enter the front-end page as soon as we open the fastadmin framework, the following method can solve this problem.
First we find the path

 find the redirection,

The original file looks like this:

<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        return $this->view->fetch();
    }

}

Change to:

<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        $this->redirect("/ZeGLzMFAkS.php");   //关键代码重定向
    }

}

Remember: the path in the redirect is your own, this is mine

 

Guess you like

Origin blog.csdn.net/m0_64590669/article/details/131294555