First of all in form action you always put a link to controller
(action), not to view etc. You could add to executeIndex action in
your module something like this, after whole code of this action:
public executeIndex(sfWebRequest $request)
{
//code of an action
if ($request->isMethod('post'))
{
//here you can add code that will get objects from
database with sent criteria and send it to indexSucces.php
}
}
On 25 Lut, 10:36, SeeVik <[email protected]> wrote:
> I guess I have to use AJAX for this kind of form handling. Any other
> hints and suggestions are most welcome.
>
> Thanks and Regards
> Vikram
>
> On Feb 25, 6:04 pm, SeeVik <[email protected]> wrote:
>
> > Hello all
>
> > I have created a components which displays a list of news headlines (I
> > read this in the book Definitive Guide to Symfony).
>
> > Now this headlines component I am calling in a template. I customized
> > this component a bit by adding a filter for date, and a keyword search
> > utility.
>
> > Now I am confused how to display the keyword search results. Like I
> > have a button for search, what should I put in place of submit action
> > when this button is pressed?
>
> > 1. Should it be the name of view in which this component is called?
> > 2. Should it be the name of partial which the component is constituted
> > of?
> > 3. Should it be the some new action that I have created? (This is not
> > correct becoz doing this opens the search results in a new page, I
> > want to display the results just below the search panel).
>
> > can anybody help me out with this?
>
> > Thanks and Regards
> > Vikram
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---