我正在开发一个zendframework项目。我的注册页面包含一个“我同意使用条款”字段,旁边有一个复选框。这里我想把“使用条款”作为链接。但我是zend和PHP5的新手。我检查了代码,下面是显示“我同意使用条款”的代码。
'Agree' => array ('Checkbox', array (
'Required' => true,
'Decorators' => $element Decorators,
'Label' => 'I Agree to the Terms of Use',
)),我如何将使用条款作为链接?
发布于 2013-05-25 00:10:16
您也可以通过以下方式完成此操作:
$radioElement = new Zend_Form_Element_Checkbox('formelement_0');
$radioElement->setLabel('Do you accept the <a href="#">Terms & Conditions</a>?');
$radioElement->getDecorator('Label')->setOption('escape', false);https://stackoverflow.com/questions/5152601
复制相似问题