|
There is a bit of a change between the way PaginatorHelper::next() behaves in v1.3 and v2.1 which I just can't get my head around.
Take the following snippet: echo $this->Paginator->next('Next', array('tag'=>'div', 'class'=>'next_page', 'rel'=>'next'), null, array('class'=>'next_page disabled')); v1.3 Output <div><a href="/customers/index/All/15/page:2" rel="next" class="next_page">Next</a></div> v2.1 Output <div class="next_page"><a href="/jobs/view_open/17/page:2" rel="next">Next</a></div> In v1.3 it appears to apply the class to the link rather than the wrapping tag. In v2.1, it applies the class to the wrapping tag and not the link. Is there any way to revert to how it was, or if not, is there a way to style the link inside the wrapping tag?
-- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Seems as if this is the reason - Ticket 1759 - so I guess my question is how to apply a class to the link contained in the wrapping tag?
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Or just change your CSS to div.next_page a { ... }
On Sat, Apr 28, 2012 at 5:54 AM, gmwebs <[hidden email]> wrote: > Seems as if this is the reason - Ticket 1759 - so I guess my question is how > to apply a class to the link contained in the wrapping tag? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [hidden email] For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Proper dumb moment! Works fine, thanks.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
| Powered by Nabble | Edit this page |
