我希望在另一个浏览器选项卡中打开一个链接,而不是用户所在的位置。
<?=__('Development by ').$this->Html->link('Test','http://www.test.cl',array('class'=>'orange-link'));?>
First, don't use php short tags, they simply suck and can cause issues.
Learn some HTML basics: http://www.w3schools.com/tags/att_a_target.asp
The target attribute specifies where to open the linked document.
$this->Html->link('Lixsys','http://www.lixsys.cl',array(
'class'=> 'orange-link'
'target'=> '_blank'
));
You must use the target _blank
that opens a new blank tab you want to open the link and the link arm use $this->Html->link
http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.