Re: How to output UTF-8 sign?

2010-05-02 Thread sebb86
John Thanks a lot for all your help and that you spending time on this. If anyone else need the source code: (additions: column number in every column header, renamed column headers) [code] ?php $sortable = array('id' = 'sort_none', 'hardware_unit_id' = 'sort_none', 'description' = 'sort_none');

Re: How to output UTF-8 sign?

2010-05-01 Thread John Andersen
You should think more on all the information available to you in the view! You already have: 1) the field name by which the sort is performed. 2) the sort direction for the chosen field name. 3) the list of fields which are sortable. So you should be able to think it through and arrive at

Re: How to output UTF-8 sign?

2010-04-30 Thread sebb86
Well, I don't know at which position in the source code, i have to reset it. I would reset with this source code: $sortCssClass = 'sort_none'; I think, i need to know, which column header is clicked and then i have to reset all others. Could you give me a last hint please? Thanks! Check out the

Re: How to output UTF-8 sign?

2010-04-26 Thread sebb86
Thank you for making an example! But in my case, i have more than one column to make sortable. In your example, when i click on one table header to sort, all table headers show the same arrow, what is wrong :/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: How to output UTF-8 sign?

2010-04-26 Thread John Andersen
As soon as you want to sort more than only one column, then you have to reset the sort direction for the other columns, when you choose another to sort by. That is a task I will leave up to you :) Enjoy, John On Apr 26, 12:24 pm, sebb86 kahlc...@googlemail.com wrote: Thank you for making an

Re: How to output UTF-8 sign?

2010-04-26 Thread sebb86
Hmm, should it be easy to reset the sort direction? I don't know at which position in the source code, i have to reset it. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the

Re: How to output UTF-8 sign?

2010-04-22 Thread sebb86
Hello again and thanks. I got an arrow in my column header. But its every time (asc or desc) the same arrow, so i think, the paginate source code is still wrong. My problem is still, that i dont know how to combine two classes in one paginate function. [code dont works] ?php echo

Re: How to output UTF-8 sign?

2010-04-22 Thread John Andersen
You have to check for what is the current sort direction and then apply the correct class to the paginator-sort(...) options. I have made an example at: http://jaa.myftp.org:28880/examples/paginator_sort_arrows At first the order is unordered, as that is how the records are in the database (only

Re: How to output UTF-8 sign?

2010-04-21 Thread John Andersen
Try to add a CSS class to the sort link and then use CSS to add something to the link. For example: [code] $paginator-sort('id', 'id', array('class' = 'asc'); [/code] and when clicked on, change into: [code] $paginator-sort('id', 'id', array('class' = 'desc'); [/code] Then with CSS make the

Re: How to output UTF-8 sign?

2010-04-21 Thread sebb86
Hello and sry that i have to ask again. But i dont know, what the correct syntax for the pagination is. At the moment i have: [code] ?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id ^'), 'id'); ? [/code] How do i get class definitions inside? Check out the new CakePHP Questions site

Re: How to output UTF-8 sign?

2010-04-21 Thread John Andersen
The pagination-sort syntax can be seen here: http://api12.cakephp.org/class/paginator-helper#method-PaginatorHelpersort which says sort(title, key, options) and it is in the options array that you put the class definition. Enjoy, John On Apr 21, 10:03 am, sebb86 kahlc...@googlemail.com wrote:

Re: How to output UTF-8 sign?

2010-04-21 Thread sebb86
Hello again and thanks. I got an arrow in my column header. But its every time (asc or desc) the same arrow, so i think, the paginate source code is still wrong. My problem is still, that i dont know how to combine two classes in one paginate function. [code dont works] ?php echo

Re: How to output UTF-8 sign?

2010-04-21 Thread sebb86
Hello again and thanks. I got an arrow in my column header. But its every time (asc or desc) the same arrow, so i think, the paginate source code is still wrong. My problem is still, that i dont know how to combine two classes in one paginate function. [code dont works] ?php echo

Re: How to output UTF-8 sign?

2010-04-20 Thread sebb86
Addition: [code] uarr; [/code] also works. But also _not_ inside the paginate source code. Any ideas? Thanks if someone can help! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are

Re: How to output UTF-8 sign?

2010-04-19 Thread John Andersen
As far as the PHP manual states, you use #nnn; so your arrow becomes #2191; Enjoy, John On Apr 19, 8:21 am, sebb86 kahlc...@googlemail.com wrote: Hello, my charset is set to UTF-8. But how do i output a UTF-8 sign inside PHP? For example an arrow (U+2191) in a table cell: [code] th?php

Re: How to output UTF-8 sign?

2010-04-19 Thread sebb86
Hello again John, this outputs a strange sign: ࢏ Seems like its the arrows hex code. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: How to output UTF-8 sign?

2010-04-19 Thread John Andersen
I now see that your code was the hex code, not the decimal code, so use #x2191; for your arrow. Enjoy, John On Apr 19, 9:18 am, sebb86 kahlc...@googlemail.com wrote: Hello again John, this outputs a strange sign: ࢏ Seems like its the arrows hex code. Check out the new CakePHP Questions

Re: How to output UTF-8 sign?

2010-04-19 Thread sebb86
Thanks. It works when i write: [code] ?php echo '#x2191;' ? [/code] But _NOT_ with paginate: [code] ?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id #x2191'), 'id'); [/code] What's wrong there? Regards. Check out the new CakePHP Questions site http://cakeqs.org and help others with

How to output UTF-8 sign?

2010-04-18 Thread sebb86
Hello, my charset is set to UTF-8. But how do i output a UTF-8 sign inside PHP? For example an arrow (U+2191) in a table cell: [code] th?php echo $paginator-sort(array('asc' ='id U+2193', 'desc' ='id U+2191'), 'id'); ?/th [/code] regards and thanks! Check out the new CakePHP Questions site