For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] Noob question on Pager, link elements and valid XHMTL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Noob question on Pager, link elements and valid XHMTL
Lorenzo Alberton

2005-05-07, 8:57 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com