[cvs] [Wiki] changed: Doc/Dev/TemplatePackage

Wiki Guest wikiguest at horde.org
Wed Feb 14 16:27:15 PST 2007


guest [218.214.195.197]  Wed, 14 Feb 2007 16:27:15 -0800

Modified page: http://wiki.horde.org/Doc/Dev/TemplatePackage
New Revision:  1.1
Change log:  snide comment about using classes in templates

@@ -97,8 +97,14 @@
  </body></html>
  </code>
  
  ** Note:** You must have a loop array to parse through variables with keys. Using the tags {{<tag:foo.somekey />}} on their own without the loop tag will not work properly.
+
++++ Objects as arrays
+Although you can't use objects directly in your templates... ie with foo being an instancec of a class foo.bar won't be the attribute you'd you expect...  however, if you
+<code type="php">$tempalte->set('foo', get_object_vars ( $object ) ) ;
+</code>
+you'll get all the attributes ... but still won't be able to call the methods ...
  
  +++ If Conditions
  
  PHP:
@@ -217,4 +223,7 @@
  * spoon
  * paperbag
  * tool
  </code>
+
+
+


More information about the cvs mailing list