> <a tal:condition="php:pager.getNumberOfPages() GT 1 AND
> pager.getCurrentPage() LT pager.getNumberOfPages()-1"
> href="${php:pager.getURL(pager.getNumberOfPages())}#p${latest_post/id}">Last
> >></a>
>
> Why not write it like this:
>
> <a tal:condition="pager/getNumberOfPages GT 1 AND pager/getCurrentPage LT
> pager/getNumberOfPages-1"
> href="${pager/getURL(pager/getNumberOfPages)}#p${latest_post/id}">Last >></a>
>

Or JavaBeans way :)

<a tal:condition="pager/numberOfPages GT 1 AND pager/currentPage LT
pager/numberOfPages-1"
href="${pager/getURL(pager/numberOfPages)}#p${latest_post/id}"Last
>></a>

Where pager/numberOfPages is looking for getter first :)

-- 
Regards,
Łukasz Palka

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to