mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-04 16:20:55 +02:00
58 lines
1.6 KiB
XML
58 lines
1.6 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<refentry id="api.connect">
|
|
<refnamediv>
|
|
<refname>connect</refname>
|
|
<refpurpose></refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title />
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>connect</methodname>
|
|
<methodparam><type>object</type><parameter>smarty</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>connect</methodname>
|
|
<methodparam><type>object</type><parameter>smarty</parameter></methodparam>
|
|
<methodparam choice="opt"><type>bool</type><parameter>reset</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
connect() is required on every invocation of SmartyValidate. Pass your
|
|
$smarty object as the parameter. This sets up SmartyValidate with $smarty
|
|
and auto-registers the default form. Passing the optional second param as
|
|
true, the default form registration will get reset.
|
|
</para>
|
|
<example>
|
|
<title>connect</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$smarty = new Smarty();
|
|
SmartyValidate::connect($smarty);
|
|
?>
|
|
]]>
|
|
</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
|
|
indent-tabs-mode:nil
|
|
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
|
|
-->
|