[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()
  {
return $this->getUser()->getAttribute('mymodule.filters', array(),
'front_module');
  }

  protected function setFilters(array $filters)
  {
return $this->getUser()->setAttribute('mymodule.filters',
$filters, 'front_module');
  }

On 23 fév, 14:16, Tom Ptacnik  wrote:
> Look into the admin generated backend, there is the solution...
>
> On 22 ún, 14:00, Nicolas  wrote:
>
> > Nobody has an answer ?
> > How can we use a doctrine pager with Filter Forms ?
>
> > On 18 fév, 12:40, Nicolas  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  wrote:
>
> > > > 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
> > > >     $this->form->setQuery($query); // pass the query to the form
> > > > filter
> > > >     if ($filter_values) {
> > > >       $this->form->bind($filter_values);
> > > >       if ($this->form->isValid()) {
> > > >         $query = $this->form->getQuery(); // apply filters to the
> > > > query
> > > >       }
> > > >     }
> > > >     $this->pager = new sfDoctrinePager('Foos', 10);
> > > >     $this->pager->setQuery($query);
> > > >     $this->pager->setPage($request->getParameter('page', 1));
> > > >     $this->pager->init();
> > > >   }
>
> > > > On 30 Dic, 16:58, tirengarfio  wrote:> By my 
> > > > self: buildQuery().
>
> > > > > Javi
>
> > > > > On Dec 29, 1:53 pm, tirengarfio  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 the value of the filters
> > > > > >   $criteria = $this->filtro->buildCriteria($request->getParameter
> > > > > > ('cliente_filters'));
> > > > > >   $this->clientes = ClientePeer::doSelect($criteria);
> > > > > >   $this->setTemplate('index');
>
> > > > > > }
>
> > > > > > Is there anything equivalent to buildCriteria() in Doctrine?
>
> > > > > > Javi
>
> > > > > > On Dec 28, 9:18 pm,tirengarfio wrote:
>
> > > > > > > hi,
>
> > > > > > > maybe these links can be interesting for someone:
>
> > > > > > >http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/...
>
> > > > > > > Are in spanish...
>
> > > > > > > Anyway, any reason for not implementing the "Filter" button
> > > > > > > functionality?
>
> > > > > > > Javi
>
> > > > > > > On Dec 11, 11:03 am, cosmy  wrote:
>
> > > > > > > > Interesting topic.. would you mind posting the solution when 
> > > > > > > > you have
> > > > > > > > done?
> > > > > > > > Thnak you in advance
>
> > > > > > > > On 10 Dic, 08:48, Christopher Schnell  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
> > > > > > > > > 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 could make a documentation request :-)
>
> > > > > > > > > Regards,
> > > > > > > > > Christopher.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[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  wrote:
> Nobody has an answer ?
> How can we use a doctrine pager with Filter Forms ?
>
> On 18 fév, 12:40, Nicolas  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  wrote:
>
> > > 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
> > >     $this->form->setQuery($query); // pass the query to the form
> > > filter
> > >     if ($filter_values) {
> > >       $this->form->bind($filter_values);
> > >       if ($this->form->isValid()) {
> > >         $query = $this->form->getQuery(); // apply filters to the
> > > query
> > >       }
> > >     }
> > >     $this->pager = new sfDoctrinePager('Foos', 10);
> > >     $this->pager->setQuery($query);
> > >     $this->pager->setPage($request->getParameter('page', 1));
> > >     $this->pager->init();
> > >   }
>
> > > On 30 Dic, 16:58, tirengarfio  wrote:> By my self: 
> > > buildQuery().
>
> > > > Javi
>
> > > > On Dec 29, 1:53 pm, tirengarfio  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 the value of the filters
> > > > >   $criteria = $this->filtro->buildCriteria($request->getParameter
> > > > > ('cliente_filters'));
> > > > >   $this->clientes = ClientePeer::doSelect($criteria);
> > > > >   $this->setTemplate('index');
>
> > > > > }
>
> > > > > Is there anything equivalent to buildCriteria() in Doctrine?
>
> > > > > Javi
>
> > > > > On Dec 28, 9:18 pm,tirengarfio wrote:
>
> > > > > > hi,
>
> > > > > > maybe these links can be interesting for someone:
>
> > > > > >http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/...
>
> > > > > > Are in spanish...
>
> > > > > > Anyway, any reason for not implementing the "Filter" button
> > > > > > functionality?
>
> > > > > > Javi
>
> > > > > > On Dec 11, 11:03 am, cosmy  wrote:
>
> > > > > > > Interesting topic.. would you mind posting the solution when you 
> > > > > > > have
> > > > > > > done?
> > > > > > > Thnak you in advance
>
> > > > > > > On 10 Dic, 08:48, Christopher Schnell  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
> > > > > > > > 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 could make a documentation request :-)
>
> > > > > > > > Regards,
> > > > > > > > Christopher.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  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  wrote:
>
> > 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
> >     $this->form->setQuery($query); // pass the query to the form
> > filter
> >     if ($filter_values) {
> >       $this->form->bind($filter_values);
> >       if ($this->form->isValid()) {
> >         $query = $this->form->getQuery(); // apply filters to the
> > query
> >       }
> >     }
> >     $this->pager = new sfDoctrinePager('Foos', 10);
> >     $this->pager->setQuery($query);
> >     $this->pager->setPage($request->getParameter('page', 1));
> >     $this->pager->init();
> >   }
>
> > On 30 Dic, 16:58, tirengarfio  wrote:> By my self: 
> > buildQuery().
>
> > > Javi
>
> > > On Dec 29, 1:53 pm, tirengarfio  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 the value of the filters
> > > >   $criteria = $this->filtro->buildCriteria($request->getParameter
> > > > ('cliente_filters'));
> > > >   $this->clientes = ClientePeer::doSelect($criteria);
> > > >   $this->setTemplate('index');
>
> > > > }
>
> > > > Is there anything equivalent to buildCriteria() in Doctrine?
>
> > > > Javi
>
> > > > On Dec 28, 9:18 pm,tirengarfio wrote:
>
> > > > > hi,
>
> > > > > maybe these links can be interesting for someone:
>
> > > > >http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/...
>
> > > > > Are in spanish...
>
> > > > > Anyway, any reason for not implementing the "Filter" button
> > > > > functionality?
>
> > > > > Javi
>
> > > > > On Dec 11, 11:03 am, cosmy  wrote:
>
> > > > > > Interesting topic.. would you mind posting the solution when you 
> > > > > > have
> > > > > > done?
> > > > > > Thnak you in advance
>
> > > > > > On 10 Dic, 08:48, Christopher Schnell  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
> > > > > > > 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 could make a documentation request :-)
>
> > > > > > > Regards,
> > > > > > > Christopher.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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  wrote:
> 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
>     $this->form->setQuery($query); // pass the query to the form
> filter
>     if ($filter_values) {
>       $this->form->bind($filter_values);
>       if ($this->form->isValid()) {
>         $query = $this->form->getQuery(); // apply filters to the
> query
>       }
>     }
>     $this->pager = new sfDoctrinePager('Foos', 10);
>     $this->pager->setQuery($query);
>     $this->pager->setPage($request->getParameter('page', 1));
>     $this->pager->init();
>   }
>
> On 30 Dic, 16:58, tirengarfio  wrote:> By my self: 
> buildQuery().
>
> > Javi
>
> > On Dec 29, 1:53 pm, tirengarfio  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 the value of the filters
> > >   $criteria = $this->filtro->buildCriteria($request->getParameter
> > > ('cliente_filters'));
> > >   $this->clientes = ClientePeer::doSelect($criteria);
> > >   $this->setTemplate('index');
>
> > > }
>
> > > Is there anything equivalent to buildCriteria() in Doctrine?
>
> > > Javi
>
> > > On Dec 28, 9:18 pm,tirengarfio wrote:
>
> > > > hi,
>
> > > > maybe these links can be interesting for someone:
>
> > > >http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/...
>
> > > > Are in spanish...
>
> > > > Anyway, any reason for not implementing the "Filter" button
> > > > functionality?
>
> > > > Javi
>
> > > > On Dec 11, 11:03 am, cosmy  wrote:
>
> > > > > Interesting topic.. would you mind posting the solution when you have
> > > > > done?
> > > > > Thnak you in advance
>
> > > > > On 10 Dic, 08:48, Christopher Schnell  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
> > > > > > 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 could make a documentation request :-)
>
> > > > > > Regards,
> > > > > > Christopher.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[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
$this->form->setQuery($query); // pass the query to the form
filter
if ($filter_values) {
  $this->form->bind($filter_values);
  if ($this->form->isValid()) {
$query = $this->form->getQuery(); // apply filters to the
query
  }
}
$this->pager = new sfDoctrinePager('Foos', 10);
$this->pager->setQuery($query);
$this->pager->setPage($request->getParameter('page', 1));
$this->pager->init();
  }


On 30 Dic, 16:58, tirengarfio  wrote:
> By my self: buildQuery().
>
> Javi
>
> On Dec 29, 1:53 pm, tirengarfio  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 the value of the filters
> >   $criteria = $this->filtro->buildCriteria($request->getParameter
> > ('cliente_filters'));
> >   $this->clientes = ClientePeer::doSelect($criteria);
> >   $this->setTemplate('index');
>
> > }
>
> > Is there anything equivalent to buildCriteria() in Doctrine?
>
> > Javi
>
> > On Dec 28, 9:18 pm,tirengarfio wrote:
>
> > > hi,
>
> > > maybe these links can be interesting for someone:
>
> > >http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/...
>
> > > Are in spanish...
>
> > > Anyway, any reason for not implementing the "Filter" button
> > > functionality?
>
> > > Javi
>
> > > On Dec 11, 11:03 am, cosmy  wrote:
>
> > > > Interesting topic.. would you mind posting the solution when you have
> > > > done?
> > > > Thnak you in advance
>
> > > > On 10 Dic, 08:48, Christopher Schnell  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
> > > > > 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 could make a documentation request :-)
>
> > > > > Regards,
> > > > > Christopher.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  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 the value of the filters
>   $criteria = $this->filtro->buildCriteria($request->getParameter
> ('cliente_filters'));
>   $this->clientes = ClientePeer::doSelect($criteria);
>   $this->setTemplate('index');
>
> }
>
> Is there anything equivalent to buildCriteria() in Doctrine?
>
> Javi
>
> On Dec 28, 9:18 pm,tirengarfio wrote:
>
> > hi,
>
> > maybe these links can be interesting for someone:
>
> >http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/...
>
> > Are in spanish...
>
> > Anyway, any reason for not implementing the "Filter" button
> > functionality?
>
> > Javi
>
> > On Dec 11, 11:03 am, cosmy  wrote:
>
> > > Interesting topic.. would you mind posting the solution when you have
> > > done?
> > > Thnak you in advance
>
> > > On 10 Dic, 08:48, Christopher Schnell  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
> > > > 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 could make a documentation request :-)
>
> > > > Regards,
> > > > Christopher.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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
('cliente_filters'));
  $this->clientes = ClientePeer::doSelect($criteria);
  $this->setTemplate('index');
}

Is there anything equivalent to buildCriteria() in Doctrine?

Javi




On Dec 28, 9:18 pm, tirengarfio  wrote:
> 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
>
> On Dec 11, 11:03 am, cosmy  wrote:
>
> > Interesting topic.. would you mind posting the solution when you have
> > done?
> > Thnak you in advance
>
> > On 10 Dic, 08:48, Christopher Schnell  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
> > > 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 could make a documentation request :-)
>
> > > Regards,
> > > Christopher.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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


On Dec 11, 11:03 am, cosmy  wrote:
> Interesting topic.. would you mind posting the solution when you have
> done?
> Thnak you in advance
>
> On 10 Dic, 08:48, Christopher Schnell  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
> > 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 could make a documentation request :-)
>
> > Regards,
> > Christopher.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  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
> 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 could make a documentation request :-)
>
> Regards,
> Christopher.
>

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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  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
> 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 could make a documentation request :-)
>
> Regards,
> Christopher.
>
> Richtermeister schrieb:
>
>
>
> > 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 9, 1:41 am, Christopher Schnell  wrote:
>
> >> Hi all,
>
> >> I would like to use the Filter Forms in a frontend application without
> >> the admin generator.
> >> If i just use the filter form class in my action like
> >> $this->myFilter=new SomeFormFilter();
> >> and echo it in the actions template, I get the form, but not the button
> >> to filter or to reset.
>
> >> I could write such a Form myself of course, but why would I reinvent the
> >> wheel, if the form is there for me already.
>
> >> Is there any documentation on the filter forms available?
>
> >> Thanks and regards,
> >> Christopher.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "symfony users" group.
> > To post to this group, send email to symfony-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




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 could make a documentation request :-)

Regards,
Christopher.


Richtermeister schrieb:
> 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 9, 1:41 am, Christopher Schnell  wrote:
>   
>> Hi all,
>>
>> I would like to use the Filter Forms in a frontend application without
>> the admin generator.
>> If i just use the filter form class in my action like
>> $this->myFilter=new SomeFormFilter();
>> and echo it in the actions template, I get the form, but not the button
>> to filter or to reset.
>>
>> I could write such a Form myself of course, but why would I reinvent the
>> wheel, if the form is there for me already.
>>
>> Is there any documentation on the filter forms available?
>>
>> Thanks and regards,
>> Christopher.
>> 
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>
>   

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.




[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 9, 1:41 am, Christopher Schnell  wrote:
> Hi all,
>
> I would like to use the Filter Forms in a frontend application without
> the admin generator.
> If i just use the filter form class in my action like
> $this->myFilter=new SomeFormFilter();
> and echo it in the actions template, I get the form, but not the button
> to filter or to reset.
>
> I could write such a Form myself of course, but why would I reinvent the
> wheel, if the form is there for me already.
>
> Is there any documentation on the filter forms available?
>
> Thanks and regards,
> Christopher.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.