Re: [fw-general] error messages in form

2009-09-20 Thread aoohralex
Joo thx for help. Thx Joo and thx this website (I have found it today): http://www.oplabo.com/article/12 I have created: array( 'NotEmpty', true, array( 'messages' = array( 'isEmpty' = 'Name is required.' ))),

[fw-general] how can I create Cancel button ?

2009-09-20 Thread aoohralex
I have action: public function addBookAction() { $form = new Form_Books(); if ($this-getRequest()-isPost()) { $request = $this-getRequest(); if ($form-isValid($request-getPost()))

Re: [fw-general] how can I create Cancel button ?

2009-09-20 Thread aoohralex
aoohralex wrote: I have action: public function addBookAction() { $form = new Form_Books(); if ($this-getRequest()-isPost()) { $request = $this-getRequest(); if

Re: [fw-general] how can I create Cancel button ?

2009-09-20 Thread Mark Wright
Is javascript available in your country? Mark On Sun, Sep 20, 2009 at 3:36 AM, aoohralex aoohra...@gmail.com wrote: I have action:        public function addBookAction()        {                $form = new Form_Books();                 if ($this-getRequest()-isPost())                {  

Re: [fw-general] how can I create Cancel button ?

2009-09-20 Thread aoohralex
Yes but I don't know where I should place library jQuery - in which catalog (for example in Symfony Framework and ASP.NET MVC default library is the most popular javascript library on the world - jQuery and I don't need to download, place and enable it). So I downloaded jQuery library and where

Re: [fw-general] how can I create Cancel button ?

2009-09-20 Thread Mark Wright
Dude, did you even read that ZendX_JQuery page? Seriously. Take another look at the Introduction, 2nd paragraph (the one after the bullets). If you can't find it look at the very bottom of the page (you need to scroll to get there) above the horizontal rule separating the main content from the

[fw-general] Anyone having troubles with random empty captchas??

2009-09-20 Thread Alayn Gortazar
Hi everybody, I'm using a captcha element and I'm having some curious behaviour, as it randomly shows empty captchas (image is created, but no text appears on it). This is happening on a Debian Lenny system. Anyone else having the same problem?? [code] // Add a captcha

Re: [fw-general] application.ini - config controllers and layouts, but not pages?

2009-09-20 Thread Hector Virgen
You can configure the default base path of your views by adding this line to your application.ini: resources.view.basePath = APPLICATION_PATH /views/scripts Check out this page for more information:

Re: [fw-general] Split controller actions into multiple classes

2009-09-20 Thread josh.ribakoff
It depends, controllers are part of the presentation layer, if there is business logic it could be factored onto objects ( models ) it belongs to. If it is repetitive presentation logic you could sub-class the Zend_Controller_Action or create action helpers if the repeating logic are cross

[fw-general] Navigation view helper and nofollow links

2009-09-20 Thread Sergio Rinaudo
Hello, I use to build menu in my application using $this-navigation()-menu($container) where $container is a Zend_Navigation instance that contains instances of Zend_Navigation_Page. Everything works fine, except that I cannot find the correct way to render the 'rel' attribute with nofollow

Re: [fw-general] Controllers that respond to both normal requests and RESTful requests

2009-09-20 Thread Cameron
On Wed, Sep 9, 2009 at 11:36 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Cameron themsel...@gmail.com wrote (on Wednesday, 09 September 2009, 05:35 PM +0800): Hi, this is very likely to be a dumb question, but I'd really like to have my controllers respond to normal requests (as