[fw-general] How to: Zend Dojo Form Dependent Selects (e.g. Country/City)

2009-09-02 Thread denormalized
I've spent hours trying to figure out all the pieces to the puzzle of dependent selects. Here's my solution, in part gathered form messages on the zend framework mailing list. Typical problem: A form with country and city selects. Selecting a country should automatically populate the city sele

[fw-general] how to get HTML in a form label

2009-09-02 Thread Joe Czhlobatnik
I'm using an ini file to configure a form. I want the label to contain HTML: elements.terms.type = "checkbox"elements.terms.options.label = 'I agree to the Terms of Use:' But the tags get escaped. Any way to prevent this? _ Get back

Re: [fw-general] Using Default Models within Other Modules

2009-09-02 Thread Matthew Weier O'Phinney
-- jasonzfw wrote (on Wednesday, 02 September 2009, 09:29 AM -0700): > A few minutes after I sent the previous reply, that matter of ZF attempting > to look up Default_Model_Category really stuck in my head, so I added the > following line to my Category model: > > protected $_name = 'category';

Re: [fw-general] zend_mail wrong charset

2009-09-02 Thread Benjamin Eberlei
On Wednesday 02 September 2009 04:57:51 pm Alessandro Camilli wrote: > Hi, > I'm trying to send an e-mail with zend_mail. > The mail was delivered but Zend valdidate hostname.php at line 513 > generates this exception: > "iconv_strlen: wrong charset, conversion from 'UTF-8' to 'UTF-32' > is not all

Re: [fw-general] Using Default Models within Other Modules

2009-09-02 Thread jasonzfw
A few minutes after I sent the previous reply, that matter of ZF attempting to look up Default_Model_Category really stuck in my head, so I added the following line to my Category model: protected $_name = 'category'; Sure enough, this fixed the problem. I tested identical code on my DreamHost s

[fw-general] Zend_Mail: Sent or Error?

2009-09-02 Thread José de Menezes Soares Neto
Hello, Anybody know how to test if one mail was sent or not? I am using SMTP... Regards, José

Re: [fw-general] Using Default Models within Other Modules

2009-09-02 Thread jasonzfw
Hi, Thanks for the help, Matt, I really appreciate it. However, I'm at a loss as to what could be going on, as adding the autoloader code to my default module bootstrap as you describe below is precisely what what I've done. To recap: Matthew Weier O'Phinney-3 wrote: > > * In your default mod

[fw-general] zend_mail wrong charset

2009-09-02 Thread Alessandro Camilli
Hi, I'm trying to send an e-mail with zend_mail. The mail was delivered but Zend valdidate hostname.php at line 513 generates this exception: "iconv_strlen: wrong charset, conversion from 'UTF-8' to 'UTF-32' is not allowed." This is my code $mail = new Zend_Mail();

Re: [fw-general] Differences in web servers

2009-09-02 Thread Diego Potapczuk
Oh, my bad, changing it to wrote: > > > > > class Sec_Controller_Action extends Zend_Controller_Action { > > > > } Fatal error: Class 'Sec_Controller_Action' not found in > > E:\blog\application\modules\blog\controllers\IndexController.php on line > 4 > > > > > > Anyone know what can be wrong? >

[fw-general] Quickstart tutorial problems

2009-09-02 Thread mike.angstadt
Hi, I'm having trouble running the Quickstart application (http://framework.zend.com/docs/quickstart) and I was wondering if someone could help me. I've searched the mailing list archives for my problem, but could not find anything helpful. I'm stuck on this page of the tutorial: http://framew

Re: [fw-general] Validating based on more than 1 inputs

2009-09-02 Thread Stéphane Thomas
Well, if you use Zend_Filter_Input, you won't have access to the famous $context variable. On the other hand, you will be able to retrieve the value of several fields using the 'fields' metacommand. But this last strategy is compromised by the fact that all validators will be provided with those f