[symfony-users] Re: Symfony frontend sort by th

2010-03-18 Thread ziclo
I found the solution to this issue : I copied all actions found into the cache / backend folder. Then i debugged some errors (lib missing, etc..). So the solution is to use the admin filters, pager and sort actions. Now it works fine. Thank you all ! On 13 fév, 14:55, ziclo lauren...@gmail.com

[symfony-users] Re: Symfony frontend sort by th

2010-03-10 Thread ziclo
Gareth, Is your solution compatible with Doctrine ? I have a lot of errors when i try to implement it. Ziclo On 5 mar, 07:17, Gareth McCumskey gmccums...@gmail.com wrote: In your view in the header cell: th?php echo link_to(image_tag('sort_icon.png'),'module/action?sort=column_name') ?

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-10 Thread Gareth McCumskey
Mine was written in Propel. You will need to use the Doctrine equivalent methods in the correct places. I have never used Doctrine (yet) so can't do that for you On Wed, Mar 10, 2010 at 3:17 PM, ziclo lauren...@gmail.com wrote: Gareth, Is your solution compatible with Doctrine ? I have a lot

[symfony-users] Re: Symfony frontend sort by th

2010-03-09 Thread ziclo
Thank you Gareth. I'm going to try your solution. I'll tell you if it works. On 8 mar, 14:55, Gareth McCumskey gmccums...@gmail.com wrote: It is actually really simple to employ sorting yourself, thats why I guess there are no tutorials dedicated to that specifically. The example I gave you

[symfony-users] Re: Symfony frontend sort by th

2010-03-08 Thread ziclo
Thank you all. I just think that a tutorial should exists on how to create sortable columns like the way it is in the backend. Same thing for the use of filters. These are common functionnalities that i want to use for the frontend. I thought it would be simple to implement but not. I don't want

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-08 Thread Gareth McCumskey
It is actually really simple to employ sorting yourself, thats why I guess there are no tutorials dedicated to that specifically. The example I gave you works well so I personally don't understand what is difficult about it. On Mon, Mar 8, 2010 at 2:52 PM, ziclo lauren...@gmail.com wrote: Thank

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-08 Thread Augusto Flavio
Hi Daniel, thanks for your reply about the injection SQL security fix in Doctrine admin generator of symfony 1.4.3. Bye. Augusto Morais 2010/3/8 ziclo lauren...@gmail.com Thank you all. I just think that a tutorial should exists on how to create sortable columns like the way it is in the

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-06 Thread Daniel Lohse
That's incorrect, Gareth. The security fix for symfony 1.4.3 just last week was on the *exact* same lines of code because you could inject SQL in the Doctrine admin generator. How would symfony guess what you want to remove (clean) or not? :) Daniel On 06.03.2010, at 08:10, Gareth McCumskey

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-06 Thread Gareth McCumskey
I'm afraid not. The entire point of passing GET and POST variables into the sfWebRequest object is to allow for cleaning of potentially mailicious code. You say hoiw would it know? How would you know? How would you code it remove potentially malicious content? If the sfWebRequest object did

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-05 Thread Augusto Flavio
Hi Gareth, the method that you show us have a security problem: inject sql. You need to check what kind of parameter the user is sending. if (!in_array($parameter, array('asc', 'desc'))) { //do something } else { //execute the query } bye Augusto Morais -- If you want to report

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-05 Thread Gareth McCumskey
Firstly, symfony does that for you ;). Secondly it was just a quick example to get him on the right road. I didn't have time to sit and show a fully worked, real world example. Jsut to reiterate, symfony already checks what parameters are passed through GET and POST for you for SQL injection and

[symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread ziclo
Does anyone has a tutorial about that ? The backend is usefull but a good tutorial would be appreciate in order to be able to do that kind of common functionnalities. Tnak you On 18 fév, 11:16, ziclo lauren...@gmail.com wrote: Hello, That what i'm going to do. Thank you On 18 fév, 09:12,

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread Susan Ditmore
If you just want to sort the results on the immediate page, you can use this with the jquery plugin: http://tablesorter.com/docs/ If you want to be able to sort across multiple pages, tell me what you're using for pagination and I can give you a few ideas (but it will be more difficult). On

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread Gareth McCumskey
In your view in the header cell: th?php echo link_to(image_tag('sort_icon.png'),'module/action?sort=column_name') ? /th In your action: $this-data = TablePeer::getData($parameters, $request-getParameter('sort')); In your model for class TablePeer: public static function getData($parameters,

[symfony-users] Re: Symfony frontend sort by th

2010-02-18 Thread ziclo
Thats what i did but it didn't work. I will try again because i have more experience now. Thank you On 18 fév, 07:56, Tom Ptacnik to...@tomor.cz wrote: If you want a native method you can look into generated backend actions and templates and replicate this in your frontend. On 16 ún, 19:05,

[symfony-users] Re: Symfony frontend sort by th

2010-02-18 Thread ziclo
Hello, That what i'm going to do. Thank you On 18 fév, 09:12, Gareth McCumskey gmccums...@gmail.com wrote: Why not just implement it yourself? You don't need to have everything pre-written for it. Simply make the column heading a link pointing to an action that re-runs the query with the

[symfony-users] Re: Symfony frontend sort by th

2010-02-17 Thread ziclo
Is there a native (doctrine or symfony) method ? Thanks On 14 fév, 14:52, Daniel Lohse annismcken...@googlemail.com wrote: You should take a look at the internal Sympal plugin sfSympalDataGridPlugin. This will do what you want and there's also some documentation about it on the Sympal

[symfony-users] Re: Symfony frontend sort by th

2010-02-17 Thread Tom Ptacnik
If you want a native method you can look into generated backend actions and templates and replicate this in your frontend. On 16 ún, 19:05, ziclo lauren...@gmail.com wrote: Is there a native (doctrine or symfony) method ? Thanks On 14 fév, 14:52, Daniel Lohse annismcken...@googlemail.com

[symfony-users] Re: Symfony frontend sort by th

2010-02-14 Thread Dimitar
I am looking for the same thing, with Doctrine and SF 1.4 If anyone can help I am very interested too. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this

Re: [symfony-users] Re: Symfony frontend sort by th

2010-02-14 Thread Daniel Lohse
You should take a look at the internal Sympal plugin sfSympalDataGridPlugin. This will do what you want and there's also some documentation about it on the Sympal homepage here: http://www.sympalphp.org/documentation/1_0/book/data-grid/en . Jon recently committed some changes that should make