Re: [fw-general] Zend_Form - Viewscript

2009-12-15 Thread strick
The problem with this is that you still can't add information inbetween each input. For instance: label for=Mine:/labelinput type=radio / Reference label for=Mine:/labelinput type=radio / Reference label for=Mine:/labelinput type=radio / Reference To accomplish this you still have to

Re: [fw-general] Zend_Form - Viewscript

2009-12-15 Thread strick
I'm wrong, something like this would work: $selectOptions = $this-element-getMultiOptions(); $custom = array(); foreach($selectOptions as $value = $label){ ? div class=radioinput type=radio value=?=$value? /?=$label?/div ?}? The only problem with this is that you have to re write all

[fw-general] Zend_Form | ViewScript decorator path

2009-04-03 Thread Behzad
Hi, I'm trying to develop a Date-picker element to be used in my Zend_Form-based forms. Here's the problem: $this-addDecorator('ViewScript', array( 'viewScript' = realpath(dirname(__FILE__) . '/jalali_date.phtml') )); I can't use absolute paths here. *Warning:

[fw-general] Zend_Form viewscript helper, subforms dojo

2009-02-18 Thread lightflowmark
Hi, I'm trying to use Zend_Dojo_Form to create a form where users can click a link next to each element to e.g. verify that element against the database in some way. So next to every element, I want a link saying 'verify', with an onclick handler to do some XHR stuff. Also before each element I

Re: [fw-general] Zend_Form ViewScript Elements don't show

2008-11-05 Thread Matthew Weier O'Phinney
-- dbroderick [EMAIL PROTECTED] wrote (on Wednesday, 05 November 2008, 02:38 PM -0800): I am relatively new to ZF (currently using 1.6.2) and am working on a multi-page form (subforms) and need to have one of my pages use the ViewScript so that I could write custom HTML for the layout. I

[fw-general] Zend_Form ViewScript Elements don't show

2008-09-26 Thread devxtech
After looking through the mailing list archives and trying a lot of different things I can't seem to find out why the form elements won't display from my viewscript. They display fine when i don't use a viewscript and use the default decorators. My viewscript

Re: [fw-general] Zend_Form ViewScript Elements don't show

2008-09-26 Thread Matthew Weier O'Phinney
-- devxtech [EMAIL PROTECTED] wrote (on Friday, 26 September 2008, 01:43 PM -0700): After looking through the mailing list archives and trying a lot of different things I can't seem to find out why the form elements won't display from my viewscript. They display fine when i don't use a

Re: [fw-general] Zend_Form ViewScript Elements don't show

2008-09-26 Thread devxtech
Here is what Matthew found out to be the problem. Just posting the solution for anyone else who has my same issue. Matthew Weier O'Phinney-3 wrote: I forgot to include that at the top of my viewscript before was the following code: foreach ($this-element as $element):

Re: [fw-general] Zend_Form - Viewscript

2008-05-29 Thread Julian Davchev
This solution should work for you. It fixes two issues: - attributes leaking into html..when they shouldn't - you get your selects,radio,checkbox and whatever like that working ?php //we need this trick due to: http://framework.zend.com/issues/browse/ZF-3052 //Expand the list as needed

[fw-general] Zend_Form - Viewscript

2008-05-28 Thread jmazzi
I am using the example from http://framework.zend.com/manual/en/zend.form.standardDecorators.html#zend.form.standardDecorators.viewScript to create a custom viewscript. i used the example from the manual but it wont render select box options. It works for all other input types (text etc) and