Actually PaginatorHelper::first does not handle this.
I suggest you to create your own way to do it.

Something like:
$first = $paginator->first();
if (!$first) {
   $first = $html->link('my own link');
}
echo $first;

On Wed, Nov 19, 2008 at 2:35 AM, Kyle Decot <[EMAIL PROTECTED]> wrote:

>
> I am trying to use $paginator->first(); but if I am on the first page
> or if there is only one page of results the "first" text does not
> appear. I would like it to appear but dimmed out. How would I do this?
> I am currently using:
>
> <?php echo $paginator->first("First",array(),"First",array
> ("class"=>"paginator-nav-disabled")); ?>
>
> Thanks for the help as always!
> >
>


-- 
Renan Gonçalves aka renan.saddam
Software Engineer - CakePHP Core Developer
Cell Phone: +55 11 8633 6018
MSN: [EMAIL PROTECTED]
São Paulo - SP/Brazil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to