私はphpコードでhtmlマークアップをたどりました:
<div class="block">
<div class="block-title">
<?php if ($user->isOnline()): ?>
<a href="<?=Url::create('/user/logout');?>">Logout</a>
<?php endif; ?>
</div>
</div>
コード スニファを実行すると、次のエラーが表示されます。
<error line="3" column="15" severity="error" message="Line indented incorrectly; expected 8 spaces, found 0" source="Generic.WhiteSpace.ScopeIndent.Incorrect"/>
<error line="5" column="15" severity="error" message="Closing brace must be on a line by itself" source="PEAR.WhiteSpace.ScopeClosingBrace.Line"/>
HTMLビューでのphp構造に関する標準または説明を見つけようとしましたが、それについては何もありません。
たぶん、 html でどのように見えるか、どのようif
に指示するか知っている人はいますか?foreach
ありがとう。