-- Bob O <b...@electricgraffitti.com> wrote
(on Saturday, 14 February 2009, 05:54 PM -0800):
> 
> If anyone could point me in a good direction that would be great
> 
> Im trying to get this form to validate

<snip - INI and view code> 

> this is my Controller code -
> 
>         $config = new Zend_Config_Ini(APPLICATION_PATH .
> '/config/campaignCreateForm.ini');
>         $this->_campaignCreateForm = new
> Zend_Form($config->advertiser->campaignCreate);
> 
> But im at a loss as to how the validations work? 

In your controller, pass data from the request to the form's isValid()
method:

    if ($this->_campaignCreateForm->isValid($this->getRequest()->getPost())) {
        // Validates!
    }

-- 
Matthew Weier O'Phinney
Software Architect       | matt...@zend.com
Zend Framework           | http://framework.zend.com/

Reply via email to