Apache2-PageKit
view release on metacpan or search on metacpan
docsrc/features.xml view on Meta::CPAN
</sect2>
<sect2>
<title>HTML::Template::XPath</title>
<para>
Using HTML::Template::XPath is easy with PageKit, it is build into the
PageKit Template by using
<CONTENT_VAR> and <CONTENT_LOOP> tags, which contain
XPath queries to the Content XML data.
</para>
<para>
The Content XML file defaults to <filename>Content/<replaceable>page_id</replaceable>.xml</filename> or can be specified using XPath's <emphasis role="bold">document()</emphasis> function.
</para>
</sect2>
</sect1>
<sect1>
<title>Language Localization</title>
<para>
One of the main advantages of separating out the Content
from the View is that it
is easy to implement multiple languages while sharing the same
look-and-feel. You may use the <literal>xml:lang</literal>
docsrc/features.xml view on Meta::CPAN
<para>
To use, place the following in the your <filename>httpd.conf</filename> file:
<informalexample>
<programlisting>
PerlModule Apache::ErrorReport
PerlSetVar ErrorReportHandler display
</programlisting>
</informalexample>
</para>
<para>
If <literal>ErrorReportHandler</literal> is set to <emphasis role="bold">display</emphasis>, errors will be displayed on the screen for easy debugging. This should be
used in a development environment only.
</para>
<para>
If <literal>ErrorReportHandler</literal> is set to <emphasis role="bold">email</emphasis>, errors will be e-mailed to the site adminstrator as specified in the Apache
<literal>ServerAdmin</literal> configuration directive. This should be used on a production site.
</para>
</sect1>
</chapter>
docsrc/reference.xml view on Meta::CPAN
Sets the content type of the output sent to the client.
Content types are strings like "text/plain", "text/html" or "application/xml".
This corresponds to the "Content-Type" header in the HTTP protocol.
The following content types have default views and/or special handing
associated with them:
</para>
<informaltable frame="all">
<tgroup cols="4">
<tbody>
<row rowsep="1" role="attrheader">
<entry role="th"><para><emphasis role="bold">content_type</emphasis></para></entry>
<entry role="th"><para><emphasis role="bold">Description</emphasis></para></entry>
<entry role="th"><para><emphasis role="bold">Default Views</emphasis></para></entry>
<entry role="th"><para><emphasis role="bold">Special Handing</emphasis></para></entry>
</row>
<row>
<entry>text/html</entry>
<entry>
HTML output. This is for traditional screen browsers such as
Netscape and Internet Explorer.
</entry>
<entry>This is the default content_type for all views except for
those listed below</entry>
<entry>PageKit translates sets the charset in the Content-Type headers and translates the output according
docsrc/reference.xml view on Meta::CPAN
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
This method fetches all of the parameters from the Apache request object,
returning a reference to a hash containing the parameters as keys, and
the parameters' values as values. Note a multivalued parameters
is returned as a reference to an array.
</para>
<para>
Note, that the values in this hash are <emphasis role="bold">readonly</emphasis>.
To modify something use $model-><literal>input</literal>( key => $value );.
</para>
</refsect1>
</refentry>
<refentry id="model.api.fillinform">
<refnamediv>
<refname>fillinform</refname>
<refpurpose>
Fills in HTML Forms
</refpurpose>
docsrc/reference.xml view on Meta::CPAN
return;
</synopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Resets the page_id. This is usually used "redirect" to different template.
</para>
<para>
Note that you should perform a <link linkend="model.api.pkit_redirect">pkit_redirect</link>
for <emphasis role="bold">POST</emphasis> requests.
From PageKit v1.12 on pkit_internal_redirect handle full url's and strip them.
Parameters at the end of request are removed.
This is usefull if you get the url from a pkit_done like parameter.
</para>
</refsect1>
</refentry>
<refentry id="model.api.pkit_redirect">
<refnamediv>
<refname>pkit_redirect</refname>
<refpurpose>
docsrc/reference.xml view on Meta::CPAN
</para>
</refsect1>
</refentry>
</sect2>
</sect1>
<sect1>
<title>Request parameters</title>
<para>
These are parameters that are specified in <emphasis role="bold">GET</emphasis> requests and <emphasis role="bold">POST</emphasis> requests where Content-type is one of
<constant>application/x-www-form-urlencoded</constant> or <constant>multipart/form-data</constant>.
</para>
<variablelist>
<varlistentry id="request.pkit_done">
<term>pkit_done</term>
<listitem>
<para>
The page to return to after the user has finished logging in or creating a new account.
</para>
</listitem>
( run in 1.437 second using v1.01-cache-2.11-cpan-39bf76dae61 )