[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-25 Thread Nicolas
That's what I've done and I finally succeed to make a filtersForm working with paginated results. The solution is to store the selected filters in the user session with $this-getUser()-setAttribute() I've used 2 methods like this in the controller : protected function getFilters() {

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-23 Thread Tom Ptacnik
Look into the admin generated backend, there is the solution... On 22 ún, 14:00, Nicolas nicolas.soin...@gmail.com wrote: Nobody has an answer ? How can we use a doctrine pager with Filter Forms ? On 18 fév, 12:40, Nicolas nicolas.soin...@gmail.com wrote: @gino pilotino When I use

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-22 Thread Nicolas
Nobody has an answer ? How can we use a doctrine pager with Filter Forms ? On 18 fév, 12:40, Nicolas nicolas.soin...@gmail.com wrote: @gino pilotino When I use your code, the filters are working well, but when I click on a pagier link, it looses the filters selection. On 30 déc 2009, 19:34,

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-18 Thread Nicolas
@gino pilotino When I use your code, the filters are working well, but when I click on a pagier link, it looses the filters selection. On 30 déc 2009, 19:34, gino pilotino spammm...@gmail.com wrote: I use it like the following: public function executeFooList(sfWebRequest $request)   {    

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-30 Thread tirengarfio
By my self: buildQuery(). Javi On Dec 29, 1:53 pm, tirengarfio tirengar...@gmail.com wrote: In the first link i pasted in my post before there is this code: public function executeFiltrar(sfWebRequest $request) {   $this-filtro = new ClienteFormFilter();   // Build a criteria object withe

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-30 Thread gino pilotino
I use it like the following: public function executeFooList(sfWebRequest $request) { $query = Doctrine::getTable('Foo')-createQuery(); $filter_values = $request-getParameter('foo_filters'); $this-form = new FooFormFilter($filter_values); // filters default values if exist

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-29 Thread tirengarfio
In the first link i pasted in my post before there is this code: public function executeFiltrar(sfWebRequest $request) { $this-filtro = new ClienteFormFilter(); // Build a criteria object withe the value of the filters $criteria = $this-filtro-buildCriteria($request-getParameter

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-28 Thread tirengarfio
hi, maybe these links can be interesting for someone: http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/ http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-ii/ Are in spanish... Anyway, any reason for not implementing the Filter button functionality? Javi

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-11 Thread cosmy
Interesting topic.. would you mind posting the solution when you have done? Thnak you in advance On 10 Dic, 08:48, Christopher Schnell ty...@mda.ch wrote: Yeah, I thought so. But I can use the fieldset of the filter form anyway. I was mainly curious because the form filters are nowhere

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-10 Thread ken
You can reuse them out of admin generator. If you want to investigate what is the usage then check the generated cache. On Dec 10, 3:48 pm, Christopher Schnell ty...@mda.ch wrote: Yeah, I thought so. But I can use the fieldset of the filter form anyway. I was mainly curious because the form

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-09 Thread Richtermeister
Nah, sorry, you'll have to write that yourself, as you have to with every form. Reason being that the surrounding html around the form is generated by the admin generator, and without that layer in the cache, there's no partials for you to include.. It's not a lot of work though. Daniel On Dec

Re: [symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-09 Thread Christopher Schnell
Yeah, I thought so. But I can use the fieldset of the filter form anyway. I was mainly curious because the form filters are nowhere described, and I use filters to let the user select the records quite often. So it would have come handy earlier, but i just didn't know how to use them. Maybe I