Re: [fw-general] grouped Zend_Form text elements

2010-05-14 Thread Eugene Morgan
This is one way to do it: $city->removeDecorator('DtDdWrapper') ->addDecorator('HtmlTag', array( 'tag' => 'dd' )); You'll get markup like this: Zipcode / City Then you can use CSS to make that second display inline. On Thu, May 13, 2010 at 4

Re: [fw-general] getFrontController() returns null?

2009-11-30 Thread Eugene Morgan
ject in Zend_Registry. But I'm clueless as to why the server doesn't want to play along ... On Mon, Nov 30, 2009 at 8:03 PM, Matthew Weier O'Phinney wrote: > -- Eugene Morgan wrote > (on Monday, 30 November 2009, 06:35 PM -0600): >> I am working on a contact form in

[fw-general] getFrontController() returns null?

2009-11-30 Thread Eugene Morgan
I am working on a contact form in ZF 1.9. In one of my actions, I am trying to access the bootstrap by $this->getFrontController()->getParam('bootstrap') I made some changes to the application.ini file that shouldn't affect anything ... but now the code above is not returning the bootstrap. In fac

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-10-01 Thread Eugene Morgan
:31 PM, Hector Virgen wrote: > This seems like a bug. I would think that setElementBelongsTo() would affect > all generated IDs. > > -- > Hector > > > On Wed, Sep 30, 2009 at 11:51 AM, Eugene Morgan > wrote: >> >> Thanks for the tip, but it doesn't q

Re: [fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Eugene Morgan
triggered at >> dispatch loop shutdown. >> >> This is, of course, a very unsatisfying solution, but it works. >> >> Maybe you could take a similar approach, or someone else could say how >> to avoid multiple identical id attributes in the first place. >>

[fw-general] Duplicate id attributes for dd's and dt's - Zend_Form

2009-09-30 Thread Eugene Morgan
I have a page that can potentially have multiple instances of the same form. I know I can use setElementsBelongTo() to prevent having more than one form element with the same name. But is there any similar way to prevent the dt and dd tags from getting assigned the same id attributes over and over

Re: [fw-general] Zend_Db_Profiler should be working but isn't...

2009-09-25 Thread Eugene Morgan
//n2.nabble.com/Console-output-disappearing-with-Firebug-1-4-2-tp3394160ef842658.html > > Christoph > > > > Eugene Morgan wrote: > > I've had the same problem since ZF 1.8 -- has anyone else gotten it to work? > > On Tue, Sep 22, 2009 at 10:46 PM, Cameron wrote: > &

Re: [fw-general] Zend_Db_Profiler should be working but isn't...

2009-09-25 Thread Eugene Morgan
I've had the same problem since ZF 1.8 -- has anyone else gotten it to work? On Tue, Sep 22, 2009 at 10:46 PM, Cameron wrote: > How can I test this one further? It *used* to work just fine, but since I > reworked to Zend_Application formats, it seems to have stopped, and the > regular methods of

[fw-general] Default project structure - forms directory

2009-09-09 Thread Eugene Morgan
On the manual page for default project structure (http://framework.zend.com/manual/en/project-structure.project.html), shouldn't there also be a /forms/ directory under "application"?

Re: [fw-general] Inserting a text string or paragraph into Zend_Form

2009-08-21 Thread Eugene Morgan
The quick way is to use the Description decorator as follows ... $textElement = new Zend_Form_Element('someElement'); $textElement->setDescription('TEXT'); If you are wanting something more complex you could define your own decorator. On Thu, Aug 20, 2009 at 11:49 AM, Enkhbilguun Erdenetsogt wrot

Re: [fw-general] how to force zend form to submit to new action

2009-07-15 Thread Eugene Morgan
If I understand correctly what you are trying to do, I think all you need to do is immediately after you instantiate the $newsletterForm, set its action to what you want (not after it's posted) ... i.e., $newsletterForm = new Default_Model_NewsletterForm(); $newsletterForm->setAction('/areaprivata

Re: [fw-general] Problem with Zend Form

2009-07-09 Thread Eugene Morgan
You have to call $request->isValid($formData) in order for getValue() to work with the posted data. On Thu, Jul 9, 2009 at 7:40 AM, magrytos1 wrote: > > Hi. I have a problem with my form. In my simple ZF project i have 2 actions: > request and critere. Each one have a form class. In form request i

Re: [fw-general] How to use MultiCheckbox for rendering hyerarchical data?

2009-05-18 Thread Eugene Morgan
If you want to add the same class for each checkbox, just do this: $formElement->setAttrib('class', 'the-class-name'); On Mon, May 18, 2009 at 9:37 AM, Sergio Rinaudo wrote: > Ok, I'll reply to myself, > I just need to pass all my categories as 'multiOptions' array. > My question now is, is the

Re: [fw-general] Validation only if a form element is true (checkbox)

2009-05-15 Thread Eugene Morgan
Look in the *Zend_Form_Element* *validators* documentation, and search for > the phrase "*validation* *context*" See this post for more info: http://www.nabble.com/Zend_Form-and-elements-chain-validation-td22083142.html On Thu, May 14, 2009 at 2:53 AM, iceangel89 wrote: > > i want to validate a

Re: [fw-general] Zend_Form_Element_Select - initial blank value

2009-05-06 Thread Eugene Morgan
This is how I do it: $field->addMultiOption('', '(choose one)'); On Mon, May 4, 2009 at 4:33 PM, Philip G wrote: > What's the best way to add an initial empty value, while still retaining a > select menu as required? > > This doesn't work very well. It, unfortunately, makes the first value '0'

Re: [fw-general] Survey: Development environment for PHP/ZFW

2009-05-04 Thread Eugene Morgan
On Sat, May 2, 2009 at 12:14 PM, howard chen wrote: > Please feel free to answer: > > 1. What OS you are using during development? Windows? Mac? Linux? Windows XP at work, Windows Vista at home > > 2. Do you edit source code on localhost or remote? i.e. is your > testing environment reside on

[fw-general] Zend_Pdf with dynamic data

2009-03-31 Thread Eugene Morgan
I'm interested in using Zend_Pdf to generate our packing slips but I am not sure how to solve a couple of problems-- * What if one of the line items is too long for one line and needs to be 2 lines -- how do I know where to break the line? * What if the packing list has so many items that it needs