'add'), array(), null, false);1.2里面可以这样写 ??$h"/> 'add'), array(), null, false);1.2里面可以这样写 ??$h">

Home  >  Article  >  Backend Development  >  cakephp中联接图片的写发

cakephp中联接图片的写发

WBOY
WBOYOriginal
2016-06-13 10:59:52752browse

cakephp中连接图片的写发

CakePHP 1.1 可以这样写

?

?

$html->link(       $html->image("add.gif"),       array('action' => 'add'),       array(),       null,       false);

1.2里面可以这样写

?

?

$html->link(       $html->image("add.gif"),       array('action' => 'add'),       array('escape' => false));

?

我用的是1.3.8 ,实验了一下可以这样写

?

?

$html->link(      $html->image('add.gif'),      '',      array('escape'=>false));
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php 初记录 符号作用Next article:PHP运用心得