My answer is for doctrine, but I think it should also apply to propel. The way it is built, I think you need to initiate the database query using them (e.g. : $query = $yourFilterForm->buildQuery ()). And then you can add your stuff (like sorting, joining addintionnal tables etc)
Anyway, the best is to generated an admin, and look at cache/backend/ dev/yourAdminModuleName/actions/actions.class.php ( or something like this) More specifically, look at executeFilter, which updates the filter parameters in the session (a good strategy in my opinion). And also buildQuery. A filter is a lot like a normal form, with the added ability to start a query with the filters already applied to it (i.e : the where clauses) Julien On Jan 13, 11:56 am, rené <[email protected]> wrote: > Hello, > > I am trying to use a form filter without the admin generator to filter > some results from a default index action. > How can I include such a form in a template? > If I understand correctly, symfony propel:build-all already created > these form in lib/filter. Unfortunately I didn't find any info in the > documentation on how I can integrate these. They just seem to appear > in the context of the admin generator, as > inhttp://www.symfony-project.org/jobeet/1_2/Propel/en/12for example. > > Thanks for any ideas, > > René --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
