'add'), array(), null, false); 1.2里面"/> 'add'), array(), null, false); 1.2里面">
Home > Backend Development > PHP Tutorial > cakephp中联接图片的写发

cakephp中联接图片的写发

WBOY
Release: 2016-06-13 13:04:07
Original
901 people have browsed it

cakephp中连接图片的写发

CakePHP 1.1 可以这样写

?

?

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

1.2里面可以这样写

?

?

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

?

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

?

?

$html->link(
      $html->image('add.gif'),
      '',
      array('escape'=>false)
);
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template