【发布时间】:2015-08-05 05:45:06
【问题描述】:
$form->addElement( new Element\Button (" Edit " , "button " ));
$form->addElement(new Element\Button);
$form->addElement(new Element\Button ( "Cancel " , "button"));
我使用了\n 和PHP_EOL,但没有任何效果。新行应位于 EDIT 按钮和新元素之间。
我应该使用 HTML 吗?
【问题讨论】:
-
是的,使用 HTML
<br />? -
\n 和 php_eol 将在源代码中生成返回,而不是 html 返回。使用