[fw-general] redirect and 500 Internal Error

2008-02-04 Thread Łukasz Kazimierz Bandzarewicz
Hi. It wont be a pure Zend Framewerok issue. I have problem with apache's 500 Internal Error on several production servers. For example. This code works on my localhost machine but on production server it rises 500 Internal Error: // SomeController.php function doSomethingAction() { $this->_re

Re: [fw-general] Zend_Form and validation language

2008-02-04 Thread Łukasz Kazimierz Bandzarewicz
Hi, Translations doesn't work with AJAX. Example: This code produces standard validators messages $response = $form->processAjax($form->getValues()); $this->getResponse()->setHeader('Content-Type', 'application/json') ->setBody($response); This code populates messages from

Re: [fw-general] Zend_Form custom validation messages

2008-01-29 Thread Łukasz Kazimierz Bandzarewicz
On 29/01/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > > > Currently, you *can* pull your validator object and set the messages: > > $notEmpty = $element->getValidator('NotEmpty'); > $notEmpty->setMessages($messages); I've figured it out a couple minutes ago. It works but it

[fw-general] Zend_Form custom validation messages

2008-01-29 Thread Łukasz Kazimierz Bandzarewicz
Hi! Ho to add custom validation messages in Zend_From? For instance in standard method (without Zend_Form) I can do: $validators = array( 'login' => array( new Zend_Validate_NotEmpty(), 'messages' => array( array( // here is my custom message Zend_Validate_NotEmpty: