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()
{
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
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,
@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)
{
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
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
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
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
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
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
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
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
12 matches
Mail list logo