Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 Zend Layouts 的网站,在某些页面上我想添加 RSS 自动检测(在 head 部分添加一个 <link> )。如何将其添加到某些页面上的布局中?
添加到您的视图中:
<? $this->headLink()->appendAlternate('/feed/', 'application/rss+xml', 'RSS Feed'); ?>
添加到您的布局中<head>
<head>
<?= $this->headLink() ?>