Re: pagination -changing labels in th tags?

2010-03-18 Thread Jeremy Burns
By the way, I really like using $html->tableHeaders and $html->tableCells;

echo $html->tableHeaders(
array(
array(
array($paginator->sort('Your label', 'Model.field'), 
array('class' => 'cssSytle')),
array($paginator->sort('Your label', 'Model.field'), 
array('class' => 'cssSytle')),
etc...
)
)
);

echo $html->tableCells(
array(
array(
array($value, array('class' => 'cssSytle')),
array($value, array('class' => 'cssSytle')),
etc...
)
)
);


Jeremy Burns
jeremybu...@me.com


On 18 Mar 2010, at 16:25, Jeremy Burns wrote:

> You can insert the label as the first argument, like this:
> 
>> Paginator->sort('#A', 'NumberOfAdults');?>
> 
> Jeremy Burns
> jeremybu...@me.com
> (Skype) +44 208 123 3822 (jeremy_burns)
> (m) +44 7973 481949
> (h) +44 208 530 7573
> 
> On 18 Mar 2010, at 16:21, mivogt-LU wrote:
> 
>> Hello, me - again ...
>> 
>> Having the index view with pagination I would like to change the
>> content of the  tags produced by the pagination helper.
>> 
>> If my datafield is NumberOfAdults the code is
>>  > $this->Paginator->sort('NumberOfAdults');?>
>> but the text is just to long for the screen and in my case I would
>> like to just write an #A above it.
>> 
>> Is there a possibility to change the label oboce the pagination
>> colums?
>> 
>> Thank you.
>> 
>> Michael
>> 
>> ...using cake 1.3 RC1
>> 
>> 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 post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
>> http://groups.google.com/group/cake-php?hl=en
> 
> 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 post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

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 post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: pagination -changing labels in th tags?

2010-03-18 Thread Jeremy Burns
You can insert the label as the first argument, like this:

> Paginator->sort('#A', 'NumberOfAdults');?>

Jeremy Burns
jeremybu...@me.com
(Skype) +44 208 123 3822 (jeremy_burns)
(m) +44 7973 481949
(h) +44 208 530 7573

On 18 Mar 2010, at 16:21, mivogt-LU wrote:

> Hello, me - again ...
> 
> Having the index view with pagination I would like to change the
> content of the  tags produced by the pagination helper.
> 
> If my datafield is NumberOfAdults the code is
>$this->Paginator->sort('NumberOfAdults');?>
> but the text is just to long for the screen and in my case I would
> like to just write an #A above it.
> 
> Is there a possibility to change the label oboce the pagination
> colums?
> 
> Thank you.
> 
> Michael
> 
> ...using cake 1.3 RC1
> 
> 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 post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

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 post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en