cvs: pear /Structures_DataGrid/DataGrid/Renderer Smarty.php
| From: | Mark Wiesemann | Date: | Sat, 11 Nov 2006 16:04:51 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Renderer Smarty.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-43042@lists.php.net to get a copy of this message | ||
wiesemann Sat Nov 11 16:04:51 2006 UTC
Modified files:
/pear/Structures_DataGrid/DataGrid/Renderer Smarty.php
Log:
- added more explaination to the Smarty renderer
http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/DataGrid/Renderer/Smarty.php?r1=1.31&r2=1.32&diff_format=u
Index: pear/Structures_DataGrid/DataGrid/Renderer/Smarty.php
diff -u pear/Structures_DataGrid/DataGrid/Renderer/Smarty.php:1.31
pear/Structures_DataGrid/DataGrid/Renderer/Smarty.php:1.32
--- pear/Structures_DataGrid/DataGrid/Renderer/Smarty.php:1.31 Sun Oct 22 20:18:48 2006
+++ pear/Structures_DataGrid/DataGrid/Renderer/Smarty.php Sat Nov 11 16:04:51 2006
@@ -22,9 +22,9 @@
* +----------------------------------------------------------------------+
* </pre>
*
- * CSV file id: $Id: Smarty.php,v 1.31 2006/10/22 20:18:48 wiesemann Exp $
+ * CSV file id: $Id: Smarty.php,v 1.32 2006/11/11 16:04:51 wiesemann Exp $
*
- * @version $Revision: 1.31 $
+ * @version $Revision: 1.32 $
* @package Structures_DataGrid_Renderer_Smarty
* @category Structures
*/
@@ -125,7 +125,17 @@
* </table>
* </code>
*
- * @version $Revision: 1.31 $
+ * This template can be used with code similar to this prototype:
+ *
+ * <code>
+ * $smarty = new Smarty(...);
+ * $datagrid =& new Structures_DataGrid(...);
+ * $datagrid->bind(...);
+ * $datagrid->fill($smarty);
+ * $smarty->display(PATH TO YOUR TEMPLATE);
+ * </code>
+ *
+ * @version $Revision: 1.32 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @author Olivier Guilyardi <olivier@samalyse.com>
* @access public