OK, I've done it :)

I needed to change some code in executeFilter action. I don't know why
but if I tried to set a request parameter by setParameter() it was
set, but not used in filter array. So I've changed it a little bit in
order to bind request data indirectly, first add my data, and the bind
them

  public function executeFilter(sfWebRequest $request)
  {
   /* ... */

    $this->filters = $this->configuration->getFilterForm($this-
>getFilters());

    $my_data_from_get = $request->getParameter($this->filters->getName
())
    if ($request->hasParameter('my_get_variable'))
    {
       $my_data_from_get ['variable_to_filter'] = $request-
>getParameter('my_get_variable');
    }

    $this->filters->bind($my_data_from_get);

    if ($this->filters->isValid())
    {
      $this->setFilters($this->filters->getValues());

      //$this->redirect('@dokument');
    }

    $this->pager = $this->getPager();
    $this->sort = $this->getSort();

    $this->setTemplate('index');
  }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to