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
