Has anybody had any success with this before?


sinkingfish wrote:
> 
> Hi,
> 
> 
> I making a custom form element which is 3 fields for phone numbers, ie
> country code, area code &  number.
> 
> I'm getting tripped up when I want to set options for the element in the
> viewHelper. So I want the element to be flexible and be able to set how
> many characters each field can hold.
> 
> 
> my view helper: 
> 
> class My_View_Helper_FormPhoneNumber extends Zend_View_Helper_FormElement
> {
>       
>       public function formPhoneNumber($name, $value = null, $attribs = null,
> $options = null)
>       {
> 
> 
> 
> So I'm wonder where and how do I populate the options parameter?
> 
> Thanks
> Brian
> 

-- 
View this message in context: 
http://www.nabble.com/Custom-form-element---passing-options-to-viewHelper-tp21073843p21127088.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to