I did mention this before on another question like this. Just create a
link on the header to an action that then amends the criteria with an
order by for the query each time and rerun the query with that new
order by.

On Fri, Apr 16, 2010 at 12:26 PM, kim <thechosendra...@gmail.com> wrote:
> oh yeah maybe i should also say it must be sorted by clicking the
> headers not just directly sort (cause this is just adding a order by
> and this is already done but i want them to be able by clicking the
> header it gets sorted on that table just like the standard admin does)
>
> On 16 apr, 11:21, kim <thechosendra...@gmail.com> wrote:
>> thanks for you response
>> i'm already using the sfDoctrinePager but i don't know how to use the
>> addSortOrder?
>> how do you use this?
>>
>> thanks :)
>> greetings
>>
>> On 16 apr, 11:11, Alexandru-Emil Lupu <gang.al...@gmail.com> wrote:
>>
>>
>>
>>
>>
>> > use the sfPager, sfPropelPager or sfDoctrinePager. It has a option
>> > like : addSortOrder or, you can use a custom Query to solve the
>> > problem.
>>
>> > On Fri, Apr 16, 2010 at 12:34 PM, kim <thechosendra...@gmail.com> wrote:
>> > > hi,
>>
>> > > I made a program with a table that you can search on and use
>> > > pagination
>> > > but now i want to sort it (like in the admin control but when i look
>> > > at this code i can't finde the templates to see how it is done in
>> > > there) and i couldn't use the admin because then i wouldn't have the
>> > > liberty to change things and this is really needed for this project
>>
>> > > does anyone know how to do this sorting in symfony? i tried the jquery
>> > > sorter but this one only sorts the page that is shown but i need to
>> > > sort everything.
>>
>> > > Thanks
>> > > greetings
>>
>> > > --
>> > > 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
>>
>> > --
>> > Have a nice day!
>>
>> > Alecs
>> > Certified ScrumMaster
>>
>> > There are no cannibals alive! I have ate the last one yesterday ...
>> > I am on web:  http://www.alecslupu.ro/
>> > I am on twitter:http://twitter.com/alecslupu
>> > I am on linkedIn:http://www.linkedin.com/in/alecslupu
>> > Tel: (+4)0722 621 280
>>
>> > --
>> > 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 
>> > athttp://groups.google.com/group/symfony-users?hl=en-Tekst uit 
>> > oorspronkelijk bericht niet weergeven -
>>
>> > - Tekst uit oorspronkelijk bericht weergeven -
>>
>> --
>> 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 
>> athttp://groups.google.com/group/symfony-users?hl=en- Tekst uit 
>> oorspronkelijk bericht niet weergeven -
>>
>> - Tekst uit oorspronkelijk bericht weergeven -
>
> --
> 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
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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

Reply via email to