Re: [PHPTAL] How to write a sort link for table headers

2010-07-30 Thread Kornel LesiƄski
On 30-07-2010 at 16:41:26 Richard Dyce wrote: At present, I'm using: tal:content="repeat/item/key" >field name That looks ok. where I've captured incoming values in the GET ... $template->column = array_key_exists('column', $_GET)) ? htmlspecialchars($_GET['column']) : ''; # gra

Re: [PHPTAL] How to write a sort link for table headers

2010-07-30 Thread Richard Dyce
I've got it to work with: field name but I was wondering if there's something more idiomatic that I should have used instead? dd On 30 Jul 2010, at 16:47, Richard Dyce wrote: > Apologies for double-post - did a reply to a previous posting rather than > start new thread.

[PHPTAL] How to write a sort link for table headers

2010-07-30 Thread Richard Dyce
Apologies for double-post - did a reply to a previous posting rather than start new thread. Sorry! Hi, Sorry for the newbie question - I'm trying to work out how to rewrite a link at the top of a table that sorts the table by column... At present, I'm using: field name where I've capture

[PHPTAL] How to write a sort link for table headers

2010-07-30 Thread Richard Dyce
Hi, Sorry for the newbie question - I'm trying to work out how to rewrite a link at the top of a table that sorts the table by column... At present, I'm using: field name where I've captured incoming values in the GET ... $template->column = array_key_exists('column', $_GET)) ? htmlsp