Hi there,
Thank you very much for your help:
...that is why some filter inputs (like the date filter field for example)
have 2 fields with the same name...
Nice piece of info!. Ok you suggested me that i can take a look at the
auto-generated forms. I have searched in cache folder for the auto-
Do you really need all the values together? Can't you just create a
few addXXXColumnQuery methods and create a query in parts?
Example of my filter where I added the choice:
class CommentFormFilter extends BaseCommentFormFilter
{
public function configure()
{
Hi,
As i see..i think i can not add few addXXXColumnQuery methods and
create a query in parts. I tell you why. I have 2 custom inputs, so
if i create 2 addXXXColumnQuery methods, ill end with something like
this:
public function addMyCustomInput1ColumnQuery($query, $field, $value)
{
}
public
hi There,
i do not need to make a join just a select * from where
myCriteriaHere the criteria is:
(initial_date = myCustomInput1 and final_date =
myCustomInput1 )
or
(final_date = myCustomInput2 and initial_date =
myCustomInput2 )
or
(initial_date = myCustomInput1 and
Hey there,
ok, I think I'm following you.
Here's how to go about it:
First, if you're trying to filter on a real date or timestamp column,
then all the work is already done for you.
For example, the created_at/updated_at columns would automatically
cause the filter field that you describe to be
Correction, the method name needs to look like this:
public function addXXXColumnCriteria, where XXX is your field name in
camelcase.
for example, I have a custom filter with the field coupon, and the
corresponding method looks like:
public function addCouponColumnCriteria(Criteria $criteria,
Hey there,
in sf1.2+, the admin filtering is handled via filter form classes, so
all customization and filter logic should go in there.
The form is not only responsible for displaying and validating the
widgets, but since it extends sfFilterForm it also contains methods
that build a query /
Hi,
thank you for your answer. Ok i have a module in my backend called
price. For this module i need to add a custom filter this is: i need
to add to dates, and make a quey based on the dates selected by the
user. So by now as i said before i just configure the generator.yml of
the price module,