cvs: peardoc /en/package/html/pager intro.xml
| From: | Lorenzo Alberton | Date: | Thu, 18 Mar 2004 15:04:42 +0000 |
| Subject: | cvs: peardoc /en/package/html/pager intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3029@lists.php.net to get a copy of this message | ||
quipo Thu Mar 18 10:04:42 2004 EDT
Modified files:
/peardoc/en/package/html/pager intro.xml
Log:
add important note for PHP 5 users
http://cvs.php.net/diff.php/peardoc/en/package/html/pager/intro.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/html/pager/intro.xml
diff -u peardoc/en/package/html/pager/intro.xml:1.1 peardoc/en/package/html/pager/intro.xml:1.2
--- peardoc/en/package/html/pager/intro.xml:1.1 Tue Sep 9 20:40:22 2003
+++ peardoc/en/package/html/pager/intro.xml Thu Mar 18 10:04:40 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.html.pager.intro">
<refnamediv>
<refname>Introduction</refname>
@@ -137,6 +137,27 @@
</para>
</refsect1>
+ <refsect1 id="package.html.pager.intro.php5">
+ <title>Important note for PHP 5 users</title>
+ <para>
+ <classname>Pager</classname> v.2.x works with PHP 5 too,
+ but it needs to be called differently:
+ <programlisting role="php">
+<![CDATA[
+//chose your preferred mode [Jumping | Sliding]:
+
+//require_once 'Pager/Jumping.php';
+require_once 'Pager/Sliding.php';
+
+//$pager = & new Pager_Jumping($params);
+$pager = & new Pager_Sliding($params);
+
+//continue as you did before
+]]>
+ </programlisting>
+ </para>
+ </refsect1>
+
</refentry>
<!-- Keep this comment at the end of the file
Local variables: