[cvs] [Wiki] changed: PopulatingYourFirstModule

Wiki Guest wikiguest at horde.org
Mon Feb 23 23:46:20 UTC 2009


guest [129.187.43.121]  Mon, 23 Feb 2009 18:46:20 -0500

Modified page: http://wiki.horde.org/PopulatingYourFirstModule
New Revision:  1.10
Change log:  form information added

@@ -105,9 +105,9 @@


  +++ Templates

-To move your businesslogic-variabes to a html-layout, the  
Horde_Templates-Package is usefull. You can include templates with  
code tags, and Horde will replace these tags with your  
variable-content, if the tags and the variables are associated via  
template->setVariable(...); For further information read about this  
package use wiki.horde.org : /Doc/Dev/TemplatePackage
+To move your businesslogic-variabes to a html-layout, the  
Horde_Templates-Package is usefull. You can include templates with  
code tags, and Horde will replace these tags with your variable  
content, if the tags and the variables are associated via  
template->setVariable(...);. For further information read about this  
package use wiki.horde.org : /Doc/Dev/TemplatePackage


  +++ Horde_Forms

@@ -145,8 +145,13 @@

  // stop renderer
  $renderer->end();
  </code>
+
+If you want to manipulate form variables in javascript, you must set  
any value to that variable, otherwise it is not initialized correctly.  
If you plan to use a form for hidden values only, you will see a thin  
line in HTML. To prevent that, you can add a variable with type  
'spacer'. This type has no visible content and the thin line caused by  
the "only hidden values" disappears.
+
+To read or write the form variables user $vars->set( $variablename,  
$value);  and $myVar = $vars->get( $variablename,  
$defaultvalue_if_not_available ); .
+



  ++ Scripts



More information about the cvs mailing list