'add'), array(), null, false); 1.2里面"/> 'add'), array(), null, false); 1.2里面">

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

cakephp中联接图片的写发

WBOY
WBOYOriginal
2016-06-13 13:04:07902browse

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