This is very simple. You have those FilterForm classes for each
model.. just use those to render the forms on the front-end, and
validate the data when they are submitted, just like with a regular
form. The only difference is, you also have a method $filter ->
getCriteria(), which returns a criteri
Do you have an example please ?
Cause as i never see it from my eyes, it does not make sense.
Thanks ;)
On 22 sep, 19:32, Richtermeister wrote:
> This is very simple. You have those FilterForm classes for each
> model.. just use those to render the forms on the front-end, and
> validate the data
Sure,
in the action:
public function showCustomers(sfWebRequest $request)
{
$this -> form = new CustomerFormFilter();
if($request -> isMethod("POST"))
{
$this -> form -> bind($request -> getParameter($this -> form ->
getName()));
if($this -> form -> isValid())
{
$query = $
Of course, i'll test that ASAP !
On 24 sep, 18:12, Richtermeister wrote:
> Sure,
>
> in the action:
>
> public function showCustomers(sfWebRequest $request)
> {
> $this -> form = new CustomerFormFilter();
> if($request -> isMethod("POST"))
> {
> $this -> form -> bind($request -> getPara