{php} if(!isset($_token) || empty($_token)) { $_token = session('_token') ?? ''; } {/php} {:widget('menu/index', ['categoryId' => $categoryId])} {__CONTENT__} {:widget('footer/index')}