0
私はこのコードを持っている:レイアウトでコードが機能しないのはなぜですか?
<a itemprop="image" itemscope itemtype="https://schema.org/ImageObject"> <?= Html::img("@web/images/$game->Photo", ['alt' => 'Description', 'title' => 'Description']) ?>
それはページsite.com/www/views/game/
で完璧に動作しますが、それはページsite.com/www/views/layouts/
に動作しない、と私は理由を知りません。
私を助けることができますか?