base.php
##index.php<?php
namespace app\index\controller;
use think\Controller;class Base extends Controller;
{
}
<?phpテンプレート分離ステップに到達する前にエラーが発生しました。ヒント: ページ エラー。後でもう一度お試しください~namespace app\index\controller;
class Index extends Base
を使用しますapp\index\controller\Base;{
public functionindex()
{
return $this -> view -> fetch( ) ;
}
}
設定ファイル config.php で app_debug と app_trace を false から true に変更すると、エラーの内容を明確に確認できます
ライブラリの fetch() はどのビューを示すのかを示しません。