我需要在作业屏幕中添加一个文本区域字段。
我尝试使用自定义字段,但我只能添加一个简单的文本框。如何添加文本区域?
我从来没有使用过 symfony,所以我需要一个非常简单和详细的解决方案,拜托。
In orangeHRM or Symfony1.4, if you want to add new field in any form you have to define new field in PHP array which will be rendered in Screen. In your case to add field in viewJobDetails page.
Add field, validator in PHP array as follows. 1. Go to symfony/plugins/orangehrmPimPlugin/lib/form/EmployeeJobDetailsForm.php 2. add following code in $this->setWidgets(array(add given code here));
'new_field' => new sfWidgetFormTextarea()
add following code in $this->setValidators(array(add given code here));
'new_field' => new sfValidatorString(array('required' => false))
Hope this will help.