Re: [fw-general] Input (file) from ini

2009-03-02 Thread Bob O

ive even gone this route in the controller with no luck

 $logo = $this-_advertiserCreateForm-getElement('logo');
$logo-setAttribs(array(size=13))
 -setDestination('usr/logos')
 -addValidator('Size', false, 102400) // limit to 100K
 -setMaxFileSize(102400) // limits the filesize on the client
side
 -addValidator('Extension', false, 'jpg,png,gif');



Bob O wrote:
 
 hello,
 
 im having trouble getting my file input field to get the attribs from my
 ini file
 
 i get the element to display, but the attribs do not..
 
 here is my code
 
 reseller.advertiserCreate.elements.logo.type = file
 reseller.advertiserCreate.elements.logo.options.label = Logo:
 reseller.advertiserCreate.elements.logo.options.required = false
 reseller.advertiserCreate.elements.logo.options.attribs.size = 13
 reseller.advertiserCreate.elements.logo.options.attribs.class =
 logo_input
 reseller.advertiserCreate.elements.logo.options.attribs.tabIndex = 2
 reseller.advertiserCreate.elements.logo.options.attribs.alt = Logo Upload
 Field
 reseller.advertiserCreate.elements.logo.options.destination = usr/logos
 reseller.advertiserCreate.elements.logo.options.decorators.type =
 ViewHelper
 
 any help would be great
 


-
Bob Hanson
Web Developer
SLC, UT
-- 
View this message in context: 
http://www.nabble.com/Input-%28file%29-from-ini-tp22274917p22291940.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Input (file) from ini

2009-03-01 Thread Bob O

hello,

im having trouble getting my file input field to get the attribs from my ini
file

i get the element to display, but the attribs do not..

here is my code

reseller.advertiserCreate.elements.logo.type = file
reseller.advertiserCreate.elements.logo.options.label = Logo:
reseller.advertiserCreate.elements.logo.options.required = false
reseller.advertiserCreate.elements.logo.options.attribs.size = 13
reseller.advertiserCreate.elements.logo.options.attribs.class = logo_input
reseller.advertiserCreate.elements.logo.options.attribs.tabIndex = 2
reseller.advertiserCreate.elements.logo.options.attribs.alt = Logo Upload
Field
reseller.advertiserCreate.elements.logo.options.destination = usr/logos
reseller.advertiserCreate.elements.logo.options.decorators.type =
ViewHelper

any help would be great

-
Bob Hanson
Web Developer
SLC, UT
-- 
View this message in context: 
http://www.nabble.com/Input-%28file%29-from-ini-tp22274917p22274917.html
Sent from the Zend Framework mailing list archive at Nabble.com.