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
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
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
: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
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.
>>
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
//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:
>
&
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
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"?
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
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
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
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
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
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'
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
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
17 matches
Mail list logo