尽管有很多试验和错误,但无法使NumberTextBox小部件正常工作。我不断收到此错误信息:dijit.form.NumberTextBox错误
Catchable fatal error: Argument 4 passed to Zend_Dojo_View_Helper_NumberTextBox::numberTextBox() must be an array, null given
奇怪的是:我的事件试过了这个例子直接来自ZF的例子页面,并将它与同样的错误
->addElement(
'NumberTextBox',
'numberbox',
array(
'label' => 'NumberTextBox',
'required' => true,
'invalidMessage' => 'Invalid elevation.',
'constraints' => array(
'min' => -20000,
'max' => 20000,
'places' => 0,
)
)
)
所以失败了,我在现在亏损。如果有人有时间查看发现的代码here,您的帮助将不胜感激。我知道这是我忽略的东西。它永远是。在黑暗中
非常感谢,您的评论答案帮助了我。那是一个+1。看看我在下面使用的代码。 – 2011-11-24 03:47:50