cvs: peardoc /en/package/html/html-template-flexy/attribute textarea.xml

From: Date: Fri, 05 Mar 2004 09:45:30 +0000
Subject: cvs: peardoc /en/package/html/html-template-flexy/attribute textarea.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2862@lists.php.net to get a copy of this message
neufeind Fri Mar 5 04:45:30 2004 EDT Modified files: /peardoc/en/package/html/html-template-flexy/attribute textarea.xml Log: correcting programlisting-role for markup; minor fixes (removing empty lines and whitespaces at lineendings) http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/attribute/textarea.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/package/html/html-template-flexy/attribute/textarea.xml diff -u peardoc/en/package/html/html-template-flexy/attribute/textarea.xml:1.8 peardoc/en/package/html/html-template-flexy/attribute/textarea.xml:1.9 --- peardoc/en/package/html/html-template-flexy/attribute/textarea.xml:1.8 Thu Jan 29 11:32:26 2004 +++ peardoc/en/package/html/html-template-flexy/attribute/textarea.xml Fri Mar 5 04:45:30 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="package.html.html-template-flexy.attribute.textarea"> <refnamediv> <refname>&lt;TEXTAREA NAME="name"&gt;</refname> @@ -6,33 +6,33 @@ </refnamediv> <refsynopsisdiv> <funcsynopsis> - + <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef>&lt;<parameter>TEXTAREA NAME=&quot;name&quot;</parameter>&gt;</paramdef> - + </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.textarea.desc"> &title.desc; <para> - fills in the form with values based on the form name and the tag name. If flexyignore is + fills in the form with values based on the form name and the tag name. If flexyignore is used, it is left alone (or if the body or form has a flexyignore tag it will be left alone). </para> - - </refsect1> - - - - + + </refsect1> + + + + <refsect1 id="package.html.html-template-flexy.attribute.textarea.example"> &title.example; <example> <title>Using an element to change a template.</title> <programlisting role="php"> - <![CDATA[ + <![CDATA[ $form = new HTML_Template_Flexy(); $form->compile($this->masterTemplate); @@ -47,73 +47,71 @@ // sets the value $elements['test']->setValue('Fred'); - + $form->output(new StdClass, $elements); // in the example below, the new data you have added is to the existing attributes -]]> +]]> </programlisting> </example> <example> <title>template example</title> <programlisting role="html"> - <![CDATA[ + <![CDATA[ <BODY> <FORM name="XXXX" flexy:ignoreonly="yes"> - + <textarea name="test"></textarea> - - + + </FORM> -</BODY> +</BODY> -]]> +]]> </programlisting> </example> - + <example> <title>compiled template</title> - <programlisting role="php"> - <![CDATA[ + <programlisting role="html"> + <![CDATA[ <BODY> <FORM name="XXXX"> - + <?php echo $this->elements['test']->toHtml();?> - - - </FORM> -</BODY> -]]> + </FORM> +</BODY> + +]]> </programlisting> </example> - + <example> <title>output from the Template</title> <programlisting role="html"> - <![CDATA[ + <![CDATA[ <BODY> <FORM name="XXXX"> - + <textarea name="test" class="bold">Fred</textarea> - - + </FORM> -</BODY> +</BODY> -]]> +]]> </programlisting> </example> - </refsect1> - - - - + </refsect1> + + + + </refentry> <!-- Keep this comment at the end of the file Local variables: @@ -133,4 +131,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +-->

« previous php.pear.doc (#2862) next »