echo $this->Html->link( 'more',array( 'controller'=>'posts','action'=>'view',$post['Post']['id'] ) );
如何为此锚点/链接分配ID和类?我想覆盖它的CSS规则.
echo $this->Html->link( 'more',array( 'controller'=>'posts','action'=>'view',$post['Post']['id'] ) );
如何为此锚点/链接分配ID和类?我想覆盖它的CSS规则.
echo $this->Html->link( 'more',$post['Post']['id'] ),array( 'id' => 'myId','class' => 'myClass' ) );
有关2.x版本的Cookbook 2.x或CakePHP 1.3的Cookbook 1.3的更多信息.