Re: Noob question on Pager, link elements and valid XHMTL
| From: | Lorenzo Alberton | Date: | Sat, 07 May 2005 10:48:06 +0000 |
| Subject: | Re: Noob question on Pager, link elements and valid XHMTL | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19099@lists.php.net to get a copy of this message | ||
Peter Hiltz wrote:
I think I'm misunderstanding something here. I have Pager working, but it is using link elements in the Body of the page. E.g.:
<link rel="last" href="/index.php?page=2" title="last page" /> Running it through W3C's validator, it flunks because link elements are only allowed in the Head.
What am I missing?you can put them wherever you like: =============================== <?php $options = array(...); $pager =& Pager::factory($options); ?> <html> <head> ... <?php echo $pager->linkTags; ?> </head> <body> ... <?php echo $pager->links; ?> ... =============================== HTH Regards, -- Lorenzo Alberton http://pear.php.net/user/quipo