public function loadField(Property $property, $helperName, array $options=array())
    {
        if ($this->getHelper('field')->hasKey($helperName)) {
            /**
             * @var $formHelper FormHelperFieldInterface
             */
            $formHelper = $this->getHelper('field')->get($helperName);
            $tmpFormHelper = clone $formHelper;
            $tmpFormHelper->setProperty($property);
            $tmpFormHelper->setOptions($options);
            return $tmpFormHelper->render();
        } else {
            throw new InvalidArgumentException('unkown form helper ' . $helperName);
        }
    }
public function loadField(Property $property, $helperName, array $options=array())
    {
        if ($this->getHelper('field')->hasKey($helperName)) {
            /**
             * @var $formHelper FormHelperFieldInterface
             */
            $formHelper = $this->getHelper('field')->get($helperName);
            $tmpFormHelper = clone $formHelper;
            $tmpFormHelper->setProperty($property);
            $tmpFormHelper->setOptions($options);
            return $tmpFormHelper->render();
        } else {
            throw new InvalidArgumentException('unkown form helper ' . $helperName);
        }
    }
public function loadField ( Property $ property , $ helperName , array $ options = array ( ) ) { if ( $ this -> getHelper ( 'field' ) -> hasKey ( $ helperName ) ) { /**
             * @var $formHelper FormHelperFieldInterface
             */ $ formHelper = $ this -> getHelper ( 'field' ) -> get ( $ helperName ) ; $ tmpFormHelper = clone $ formHelper ; $ tmpFormHelper -> setProperty ( $ property ) ; $ tmpFormHelper -> setOptions ( $ options ) ; return $ tmpFormHelper -> render ( ) ; } else { throw new InvalidArgumentException ( 'unkown form helper ' . $ helperName ) ; } }
load and render form help field

@param     Property      $property       property instance
@param     string            $helperName     form helper name
@param     array             $options        form helper options
@return    string        rendered html

@throws  InvalidArgumentException
load and render form help field