cvs: peardoc /peardoc2/en/package/html/html-template-flexy/attribute flexyignore.xml flexystart.xml flexystartchildren.xml form.xml input.xml
textarea.xml /peardoc2/en/package/html/html-template-flexy/tag variable.xml
| From: | Alan Knowles | Date: | Thu, 06 Feb 2003 07:23:56 +0000 |
| Subject: | cvs: peardoc /peardoc2/en/package/html/html-template-flexy/attribute flexyignore.xml flexystart.xml flexystartchildren.xml form.xml input.xml textarea.xml /peardoc2/en/package/html/html-template-flexy/tag variable.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-367@lists.php.net to get a copy of this message | ||
alan_k Thu Feb 6 02:23:56 2003 EDT
Added files:
/peardoc/peardoc2/en/package/html/html-template-flexy/attribute
flexyignore.xml
flexystart.xml
flexystartchildren.xml
form.xml
Modified files:
/peardoc/peardoc2/en/package/html/html-template-flexy/attribute
input.xml
textarea.xml
/peardoc/peardoc2/en/package/html/html-template-flexy/tag
variable.xml
Log:
update docs to match current code - fix a few typos
Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml diff -u peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml:1.2 peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml:1.3 --- peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml:1.2 Sun Feb 2 08:37:36 2003 +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml Thu Feb 6 02:23:56 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.html.html-template.tag.input"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.html.html-template-flexy.attribute.input"> <refnamediv> <refname><INPUT NAME="name"></refname> <refpurpose>creates PHP variable for input values</refpurpose> @@ -15,7 +15,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.html.html-template-flexy.tag.input.desc"> + <refsect1 id="package.html.html-template-flexy.attribute.input.desc"> &title.desc; <para> fills in the form with values based on the form name and the tag name. If flexyignore is @@ -27,7 +27,7 @@ - <refsect1 id="package.html.html-template-flexy.tag.input.example"> + <refsect1 id="package.html.html-template-flexy.attribute.input.example"> &title.example; <example> <title>Setting variables for input</title> @@ -43,7 +43,7 @@ </example> <example> - <title>Foreach in template</title> + <title>an input tag in template</title> <programlisting role="html"> <![CDATA[ Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml diff -u peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml:1.2 peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml:1.3 --- peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml:1.2 Sun Feb 2 08:37:36 2003 +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml Thu Feb 6 02:23:56 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.html.html-template.tag.textarea"> <refnamediv> <refname><TEXTAREA NAME="name"></refname> @@ -43,7 +43,7 @@ </example> <example> - <title>Foreach in template</title> + <title>textarea in template</title> <programlisting role="html"> <![CDATA[ Index: peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml diff -u peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml:1.5 peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml:1.6 --- peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml:1.5 Sun Feb 2 10:06:10 2003 +++ peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml Thu Feb 6 02:23:56 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.html.html-template-flexy.tag.variable"> <refnamediv> <refname>{variable}</refname> @@ -41,7 +41,7 @@ <refsect1 id="package.html.html-template-flexy.tag.variable.example"> &title.example; <example> - <title>Setting variables for foreach</title> + <title>setting an object variable</title> <programlisting role="html"> <![CDATA[ @@ -54,7 +54,7 @@ </example> <example> - <title>Foreach in template</title> + <title>Outputting the variable</title> <programlisting role="html"> <![CDATA[ Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexyignore.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexyignore.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.attribute.flexyignore"> <refnamediv> <refname>FLEXYIGNORE</refname> <refpurpose>Prevent Automatic form value replacement</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>FLEXYIGNORE</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.flexyignore.desc"> &title.desc; <para> Tells the generator not to replace form elements with PHP code. Can be used with a Form Tag, or individual elements. </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.flexyignore.example"> &title.example; <example> <title>Template with flexyignore</title> <programlisting role="html"> <![CDATA[ <form name="theform"> <input name="theinput"> <input name="theinput2" value="dummy"> </form> <form name="theform2" flexyignore> <input name="theinput" value="dummy"> <input name="theinput2" value="dummy"> </form> <form name="theform2"> <input name="theinput" value="dummy" flexyignore> <input name="theinput2" value="dummy"> </form> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="theform"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> <INPUT NAME="theinput2" VALUE="<?php echo htmlspecialchars($t->theform->theinput2); ?>"><?php if (isset($this->errors['theform.theinput2'])) { echo htmlspecialchars($this->errors['theform.theinput2']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="dummy"> <INPUT NAME="theinput2" VALUE="dummy"> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="dummy"> <INPUT NAME="theinput2" VALUE="<?php echo htmlspecialchars($t->theform2->theinput2); ?>"><?php if (isset($this->errors['theform2.theinput2'])) { echo htmlspecialchars($this->errors['theform2.theinput2']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystart.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystart.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.attribute.flexystart"> <refnamediv> <refname>FLEXYSTART</refname> <refpurpose>Start the output, using this tag and it's children.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>FLEXYSTART</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.flexystart.desc"> &title.desc; <para> Tells the generator to start outputing using this tag. This can be useful if you want to edit the template in a editor that expects a head/footer, and you can list the available tags in the comments at the top of the page. </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.flexystart.example"> &title.example; <example> <title>Template with FLEXYSTART</title> <programlisting role="html"> <![CDATA[ <HTML> <HEAD></HEAD> <BODY> <H1>This is an example</H1> <FORM name="input" FLEXYSTART FLEXYOBJECT="test"> <INPUT name="hello"> </FORM> </BODY> </HTML> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="input"> <INPUT NAME="hello" VALUE="<?php echo htmlspecialchars($t->test->hello); ?>"><?php if (isset($this->errors['test.hello'])) { echo htmlspecialchars($this->errors['test.hello']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystartchildren.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystartchildren.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.attribute.flexystartchildren"> <refnamediv> <refname>FLEXYSTARTCHILDREN</refname> <refpurpose>Start the output using it's children.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>FLEXYSTARTCHILDREN</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.flexystartchildren.desc"> &title.desc; <para> Tells the generator to start outputing using the children of this tag. This can be useful if you want to edit the template in a editor that expects a head/footer, normally adding this to body </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.flexystartchildren.example"> &title.example; <example> <title>Template with flexystartchildren</title> <programlisting role="html"> <![CDATA[ <HTML> <HEAD></HEAD> <BODY FLEXYSTARTCHILDREN> <H1>This is an example</H1> <FORM name="input" FLEXYOBJECT="test"> <INPUT name="hello"> </FORM> </BODY> </HTML> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <H1>This is an example</H1> <FORM NAME="input"> <INPUT NAME="hello" VALUE="<?php echo htmlspecialchars($t->test->hello); ?>"><?php if (isset($this->errors['test.hello'])) { echo htmlspecialchars($this->errors['test.hello']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/form.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/form.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.tag.form"> <refnamediv> <refname><FORM NAME="name" FLEXYOBJECT="name"></refname> <refpurpose>configures automatic form elements</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter><FORM NAME="name" FLEXYOBJECT="name"></parameter></paramdef> <paramdef><parameter><FORM NAME="name" FLEXYIGNORE></parameter></paramdef> <paramdef><parameter><FORM NAME="name"></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.tag.form.desc"> &title.desc; <para> By default, all forms are filled in with PHP code to echo their value (using a mapping of object to form element name. </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.form.meanings"> <title>Tag meanings</title> <para> <itemizedlist> <listitem> <para> <parameter>NAME="formname"</parameter> - if no flexyobject tag is used, the form name used as the object name. A form element will use the variable eg. $t->formname->elementname </para> </listitem> <listitem> <para> <parameter>FLEXYOBJECT="objectname"</parameter> - overrides the name tag so you can use different form and object names. A form element will use the variable eg. $t->formname->elementname If you set it to "" (blank), this resulting variable will be $t->elementname </para> </listitem> <listitem> <para> <parameter>FLEXYIGNORE</parameter> - marks a form so no replacements occur. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.form.example"> &title.example; <example> <title>Setting variables for input</title> <programlisting role="html"> <![CDATA[ $this->theform = new StdClass; // or you can use a DataObject! $this->theform->theinput = "hello world"; ]]> </programlisting> </example> <example> <title>Using Form tags</title> <programlisting role="html"> <![CDATA[ <form name="theform"> <input name="theinput"> </form> <form name="theform2" flexyobject="theform"> <input name="theinput"> </form> <form name="theform2" flexyobject=""> <input name="theinput"> </form> <form name="theform2" flexyignore> <input name="theinput" value="dummy"> </form> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="theform"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theinput); ?>"><?php if (isset($this->errors['theinput'])) { echo htmlspecialchars($this->errors['theinput']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" value="dummy"> </FORM> ]]> </programlisting> </example> <example> <title>The resulting output</title> <programlisting role="html"> <![CDATA[ ** well since I cant show forms, It will look something like this.. [hello world] [hello world] [ ] [dummy ] ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml diff -u peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml:1.2 peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml:1.3 --- peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml:1.2 Sun Feb 2 08:37:36 2003 +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/input.xml Thu Feb 6 02:23:56 2003 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.2 $ --> -<refentry id="package.html.html-template.tag.input"> +<!-- $Revision: 1.3 $ --> +<refentry id="package.html.html-template-flexy.attribute.input"> <refnamediv> <refname><INPUT NAME="name"></refname> <refpurpose>creates PHP variable for input values</refpurpose> @@ -15,7 +15,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.html.html-template-flexy.tag.input.desc"> + <refsect1 id="package.html.html-template-flexy.attribute.input.desc"> &title.desc; <para> fills in the form with values based on the form name and the tag name. If flexyignore is @@ -27,7 +27,7 @@ - <refsect1 id="package.html.html-template-flexy.tag.input.example"> + <refsect1 id="package.html.html-template-flexy.attribute.input.example"> &title.example; <example> <title>Setting variables for input</title> @@ -43,7 +43,7 @@ </example> <example> - <title>Foreach in template</title> + <title>an input tag in template</title> <programlisting role="html"> <![CDATA[ Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml diff -u peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml:1.2 peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml:1.3 --- peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml:1.2 Sun Feb 2 08:37:36 2003 +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/textarea.xml Thu Feb 6 02:23:56 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.html.html-template.tag.textarea"> <refnamediv> <refname><TEXTAREA NAME="name"></refname> @@ -43,7 +43,7 @@ </example> <example> - <title>Foreach in template</title> + <title>textarea in template</title> <programlisting role="html"> <![CDATA[ Index: peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml diff -u peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml:1.5 peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml:1.6 --- peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml:1.5 Sun Feb 2 10:06:10 2003 +++ peardoc/peardoc2/en/package/html/html-template-flexy/tag/variable.xml Thu Feb 6 02:23:56 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.html.html-template-flexy.tag.variable"> <refnamediv> <refname>{variable}</refname> @@ -41,7 +41,7 @@ <refsect1 id="package.html.html-template-flexy.tag.variable.example"> &title.example; <example> - <title>Setting variables for foreach</title> + <title>setting an object variable</title> <programlisting role="html"> <![CDATA[ @@ -54,7 +54,7 @@ </example> <example> - <title>Foreach in template</title> + <title>Outputting the variable</title> <programlisting role="html"> <![CDATA[ Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexyignore.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexyignore.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.attribute.flexyignore"> <refnamediv> <refname>FLEXYIGNORE</refname> <refpurpose>Prevent Automatic form value replacement</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>FLEXYIGNORE</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.flexyignore.desc"> &title.desc; <para> Tells the generator not to replace form elements with PHP code. Can be used with a Form Tag, or individual elements. </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.flexyignore.example"> &title.example; <example> <title>Template with flexyignore</title> <programlisting role="html"> <![CDATA[ <form name="theform"> <input name="theinput"> <input name="theinput2" value="dummy"> </form> <form name="theform2" flexyignore> <input name="theinput" value="dummy"> <input name="theinput2" value="dummy"> </form> <form name="theform2"> <input name="theinput" value="dummy" flexyignore> <input name="theinput2" value="dummy"> </form> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="theform"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> <INPUT NAME="theinput2" VALUE="<?php echo htmlspecialchars($t->theform->theinput2); ?>"><?php if (isset($this->errors['theform.theinput2'])) { echo htmlspecialchars($this->errors['theform.theinput2']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="dummy"> <INPUT NAME="theinput2" VALUE="dummy"> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="dummy"> <INPUT NAME="theinput2" VALUE="<?php echo htmlspecialchars($t->theform2->theinput2); ?>"><?php if (isset($this->errors['theform2.theinput2'])) { echo htmlspecialchars($this->errors['theform2.theinput2']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystart.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystart.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.attribute.flexystart"> <refnamediv> <refname>FLEXYSTART</refname> <refpurpose>Start the output, using this tag and it's children.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>FLEXYSTART</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.flexystart.desc"> &title.desc; <para> Tells the generator to start outputing using this tag. This can be useful if you want to edit the template in a editor that expects a head/footer, and you can list the available tags in the comments at the top of the page. </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.flexystart.example"> &title.example; <example> <title>Template with FLEXYSTART</title> <programlisting role="html"> <![CDATA[ <HTML> <HEAD></HEAD> <BODY> <H1>This is an example</H1> <FORM name="input" FLEXYSTART FLEXYOBJECT="test"> <INPUT name="hello"> </FORM> </BODY> </HTML> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="input"> <INPUT NAME="hello" VALUE="<?php echo htmlspecialchars($t->test->hello); ?>"><?php if (isset($this->errors['test.hello'])) { echo htmlspecialchars($this->errors['test.hello']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystartchildren.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/flexystartchildren.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.attribute.flexystartchildren"> <refnamediv> <refname>FLEXYSTARTCHILDREN</refname> <refpurpose>Start the output using it's children.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter>FLEXYSTARTCHILDREN</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.attribute.flexystartchildren.desc"> &title.desc; <para> Tells the generator to start outputing using the children of this tag. This can be useful if you want to edit the template in a editor that expects a head/footer, normally adding this to body </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.flexystartchildren.example"> &title.example; <example> <title>Template with flexystartchildren</title> <programlisting role="html"> <![CDATA[ <HTML> <HEAD></HEAD> <BODY FLEXYSTARTCHILDREN> <H1>This is an example</H1> <FORM name="input" FLEXYOBJECT="test"> <INPUT name="hello"> </FORM> </BODY> </HTML> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <H1>This is an example</H1> <FORM NAME="input"> <INPUT NAME="hello" VALUE="<?php echo htmlspecialchars($t->test->hello); ?>"><?php if (isset($this->errors['test.hello'])) { echo htmlspecialchars($this->errors['test.hello']); } ?> </FORM> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/peardoc2/en/package/html/html-template-flexy/attribute/form.xml +++ peardoc/peardoc2/en/package/html/html-template-flexy/attribute/form.xml <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-template-flexy.tag.form"> <refnamediv> <refname><FORM NAME="name" FLEXYOBJECT="name"></refname> <refpurpose>configures automatic form elements</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> <function>Usage</function></funcdef> <paramdef><parameter><FORM NAME="name" FLEXYOBJECT="name"></parameter></paramdef> <paramdef><parameter><FORM NAME="name" FLEXYIGNORE></parameter></paramdef> <paramdef><parameter><FORM NAME="name"></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.tag.form.desc"> &title.desc; <para> By default, all forms are filled in with PHP code to echo their value (using a mapping of object to form element name. </para> </refsect1> <refsect1 id="package.html.html-template-flexy.attribute.form.meanings"> <title>Tag meanings</title> <para> <itemizedlist> <listitem> <para> <parameter>NAME="formname"</parameter> - if no flexyobject tag is used, the form name used as the object name. A form element will use the variable eg. $t->formname->elementname </para> </listitem> <listitem> <para> <parameter>FLEXYOBJECT="objectname"</parameter> - overrides the name tag so you can use different form and object names. A form element will use the variable eg. $t->formname->elementname If you set it to "" (blank), this resulting variable will be $t->elementname </para> </listitem> <listitem> <para> <parameter>FLEXYIGNORE</parameter> - marks a form so no replacements occur. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.html.html-template-flexy.tag.form.example"> &title.example; <example> <title>Setting variables for input</title> <programlisting role="html"> <![CDATA[ $this->theform = new StdClass; // or you can use a DataObject! $this->theform->theinput = "hello world"; ]]> </programlisting> </example> <example> <title>Using Form tags</title> <programlisting role="html"> <![CDATA[ <form name="theform"> <input name="theinput"> </form> <form name="theform2" flexyobject="theform"> <input name="theinput"> </form> <form name="theform2" flexyobject=""> <input name="theinput"> </form> <form name="theform2" flexyignore> <input name="theinput" value="dummy"> </form> ]]> </programlisting> </example> <example> <title>Compiled template</title> <programlisting role="html"> <![CDATA[ <FORM NAME="theform"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theform->theinput); ?>"><?php if (isset($this->errors['theform.theinput'])) { echo htmlspecialchars($this->errors['theform.theinput']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" VALUE="<?php echo htmlspecialchars($t->theinput); ?>"><?php if (isset($this->errors['theinput'])) { echo htmlspecialchars($this->errors['theinput']); } ?> </FORM> <FORM NAME="theform2"> <INPUT NAME="theinput" value="dummy"> </FORM> ]]> </programlisting> </example> <example> <title>The resulting output</title> <programlisting role="html"> <![CDATA[ ** well since I cant show forms, It will look something like this.. [hello world] [hello world] [ ] [dummy ] ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->