[symfony-users] Re: How to use the admin filter on the frontend

2010-09-22 Thread Richtermeister
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

[symfony-users] Re: How to use the admin filter on the frontend

2010-09-23 Thread Tristan
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

[symfony-users] Re: How to use the admin filter on the frontend

2010-09-24 Thread Richtermeister
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 = $

[symfony-users] Re: How to use the admin filter on the frontend

2010-09-25 Thread Tristan
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