为什么使用此<;?=&燃气轮机;cakephp中的语法
为什么在cakephp中使用此为什么使用此<;?=&燃气轮机;cakephp中的语法,php,cakephp-3.0,Php,Cakephp 3.0,为什么在cakephp中使用此语法以及使用此语法的目的是什么 代码示例 <h1> Getting All bookmarks with certain Tags: <?= $this->Text->toList( $tags ); ?> </h1> <section> <?php foreach ( $bookmarks as $bookmark ) { ?> <article
语法以及使用此语法的目的是什么
代码示例
<h1>
Getting All bookmarks with certain Tags:
<?= $this->Text->toList( $tags ); ?>
</h1>
<section>
<?php foreach ( $bookmarks as $bookmark ) { ?>
<article>
<h4><?= $this->Html->link( $bookmark->title, $bookmark->url ); ?></h4>
<small><?= h( $bookmark->url ) ?></small>
<?= $this->Text->autoParagraph( $bookmark->description ); ?>
</article>
<?php } ?>
</section>
获取具有特定标记的所有书签:
这是简短的echo语法。它是PHP的内置部分,不特定于CakePHP框架。但是,它应该在模板文件中使用,而不是Thank you@Don't Panic!我得到了答案!