【发布时间】:2012-10-07 14:16:46
【问题描述】:
我想创建一个像
这样的链接标签
<link rel="next" href="localhost/site/posts/index" />
通过 cakephp 1.3 代码。我需要把它放在头部,但是从视图中定义它
我尝试过使用 $html->meta(),例如 $html->meta("some title", "localhost/site/posts/index", array('inline' => false, 'rel' = > 'next') ) ,但我明白了
<link title="some title" rel="next" type="application/rss+xml" href="localhost/site/posts/index">
,如果我尝试摆脱类型或更改它,我只会得到以下<meta rel="next">,
我也尝试过 $html->css(),但我无法删除/更改 type="text/css" 部分
谢谢
【问题讨论】:
标签: cakephp cakephp-1.3