在父模块common,新增dialomat文件夹,index.php代码如下:
<?php
namespace Jtbc;
class Diplomat extends Diplomatist
{
public function index(Response $res)
{
$genre = 'news/company'; // 要跳转的模块名,这里是 ceshi/a
$res -> header -> set('location', Path::getActualRoute($genre . '/'));
}
}