I didn't realize isValid was populating the form, but that perfectly explains everything I encountered.
I'm using $this->_request->getPost() now, which is perfect. Thanks! -- Phillip Winn -- http://blogcritics.org/ -- 214/402-9466 -- On Fri, May 8, 2009 at 1:25 PM, Giorgio Sironi < [email protected]> wrote: > 2009/5/8 Phillip Winn <[email protected]> > >> I'm trying to *add* some logic in between the isPost() and the >> isValid($_POST), which is why I've stuck debug statements there. Both >> attempts return nothing. (Actually, they return: status = "") I've tried >> swapping out 'status' for other elements, like 'title', and that also gives >> me nothing. It appears as if getValue() *always* returns nothing. >> > > Can be a dumb question, but are you populating the form? > - form is created with fields containing null values > - isValid() populates them and perform validation on all those elements > - before isValid(), unless you call setDefaults() (aka populate()) the form > is empty > - however, you should use $this->_request->getPost() because hardcoding > $_POST won't let you test your controllers. > > > -- > Giorgio Sironi > Piccolo Principe & Ossigeno Scripter > http://ossigeno.sourceforge.net >
