<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Part III. Smarty For Programmers</title> <meta name="generator" content="DocBook XSL Stylesheets V1.75.1"> <link rel="home" href="index.html" title="Smarty Manual"> <link rel="up" href="index.html" title="Smarty Manual"> <link rel="prev" href="chapter.debugging.console.html" title="Chapter 10. Debugging Console"> <link rel="next" href="smarty.constants.html" title="Chapter 11. Constants"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr><th colspan="3" align="center">Part III. Smarty For Programmers</th></tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="chapter.debugging.console.html">Prev</a> </td> <th width="60%" align="center"> </th> <td width="20%" align="right"> <a accesskey="n" href="smarty.constants.html">Next</a> </td> </tr> </table> <hr> </div> <div class="part" title="Part III. Smarty For Programmers"> <div class="titlepage"><div><div><h1 class="title"> <a name="smarty.for.programmers"></a>Part III. Smarty For Programmers</h1></div></div></div> <div class="toc"> <p><b>Table of Contents</b></p> <dl> <dt><span class="chapter"><a href="smarty.constants.html">11. Constants</a></span></dt> <dd><dl> <dt><span class="sect1"><a href="smarty.constants.html#constant.smarty.dir">SMARTY_DIR</a></span></dt> <dt><span class="sect1"><a href="constant.smarty.core.dir.html">SMARTY_CORE_DIR</a></span></dt> </dl></dd> <dt><span class="chapter"><a href="api.variables.html">12. Smarty Class Variables</a></span></dt> <dd><dl> <dt><span class="sect1"><a href="api.variables.html#variable.template.dir">$template_dir</a></span></dt> <dt><span class="sect1"><a href="variable.compile.dir.html">$compile_dir</a></span></dt> <dt><span class="sect1"><a href="variable.config.dir.html">$config_dir</a></span></dt> <dt><span class="sect1"><a href="variable.plugins.dir.html">$plugins_dir</a></span></dt> <dt><span class="sect1"><a href="variable.debugging.html">$debugging</a></span></dt> <dt><span class="sect1"><a href="variable.debug.tpl.html">$debug_tpl</a></span></dt> <dt><span class="sect1"><a href="variable.debugging.ctrl.html">$debugging_ctrl</a></span></dt> <dt><span class="sect1"><a href="variable.autoload.filters.html">$autoload_filters</a></span></dt> <dt><span class="sect1"><a href="variable.compile.check.html">$compile_check</a></span></dt> <dt><span class="sect1"><a href="variable.force.compile.html">$force_compile</a></span></dt> <dt><span class="sect1"><a href="variable.caching.html">$caching</a></span></dt> <dt><span class="sect1"><a href="variable.cache.dir.html">$cache_dir</a></span></dt> <dt><span class="sect1"><a href="variable.cache.lifetime.html">$cache_lifetime</a></span></dt> <dt><span class="sect1"><a href="variable.cache.handler.func.html">$cache_handler_func</a></span></dt> <dt><span class="sect1"><a href="variable.cache.modified.check.html">$cache_modified_check</a></span></dt> <dt><span class="sect1"><a href="variable.config.overwrite.html">$config_overwrite</a></span></dt> <dt><span class="sect1"><a href="variable.config.booleanize.html">$config_booleanize</a></span></dt> <dt><span class="sect1"><a href="variable.config.read.hidden.html">$config_read_hidden</a></span></dt> <dt><span class="sect1"><a href="variable.config.fix.newlines.html">$config_fix_newlines</a></span></dt> <dt><span class="sect1"><a href="variable.default.template.handler.func.html">$default_template_handler_func</a></span></dt> <dt><span class="sect1"><a href="variable.php.handling.html">$php_handling</a></span></dt> <dt><span class="sect1"><a href="variable.security.html">$security</a></span></dt> <dt><span class="sect1"><a href="variable.secure.dir.html">$secure_dir</a></span></dt> <dt><span class="sect1"><a href="variable.security.settings.html">$security_settings</a></span></dt> <dt><span class="sect1"><a href="variable.trusted.dir.html">$trusted_dir</a></span></dt> <dt><span class="sect1"><a href="variable.left.delimiter.html">$left_delimiter</a></span></dt> <dt><span class="sect1"><a href="variable.right.delimiter.html">$right_delimiter</a></span></dt> <dt><span class="sect1"><a href="variable.compiler.class.html">$compiler_class</a></span></dt> <dt><span class="sect1"><a href="variable.request.vars.order.html">$request_vars_order</a></span></dt> <dt><span class="sect1"><a href="variable.request.use.auto.globals.html">$request_use_auto_globals</a></span></dt> <dt><span class="sect1"><a href="variable.error.reporting.html">$error_reporting</a></span></dt> <dt><span class="sect1"><a href="variable.compile.id.html">$compile_id</a></span></dt> <dt><span class="sect1"><a href="variable.use.sub.dirs.html">$use_sub_dirs</a></span></dt> <dt><span class="sect1"><a href="variable.default.modifiers.html">$default_modifiers</a></span></dt> <dt><span class="sect1"><a href="variable.default.resource.type.html">$default_resource_type</a></span></dt> </dl></dd> <dt><span class="chapter"><a href="api.functions.html">13. Smarty Class Methods()</a></span></dt> <dd><dl> <dt> <span class="refentrytitle"><a href="api.append.html">append()</a></span><span class="refpurpose"> — append an element to an assigned array</span> </dt> <dt> <span class="refentrytitle"><a href="api.append.by.ref.html">append_by_ref()</a></span><span class="refpurpose"> — append values by reference</span> </dt> <dt> <span class="refentrytitle"><a href="api.assign.html">assign()</a></span><span class="refpurpose"> — assign values to the templates</span> </dt> <dt> <span class="refentrytitle"><a href="api.assign.by.ref.html">assign_by_ref()</a></span><span class="refpurpose"> — assign values by reference</span> </dt> <dt> <span class="refentrytitle"><a href="api.clear.all.assign.html">clear_all_assign()</a></span><span class="refpurpose"> — clears the values of all assigned variables</span> </dt> <dt> <span class="refentrytitle"><a href="api.clear.all.cache.html">clear_all_cache()</a></span><span class="refpurpose"> — clears the entire template cache</span> </dt> <dt> <span class="refentrytitle"><a href="api.clear.assign.html">clear_assign()</a></span><span class="refpurpose"> — clears the value of an assigned variable</span> </dt> <dt> <span class="refentrytitle"><a href="api.clear.cache.html">clear_cache()</a></span><span class="refpurpose"> — clears the cache for a specific template</span> </dt> <dt> <span class="refentrytitle"><a href="api.clear.compiled.tpl.html">clear_compiled_tpl()</a></span><span class="refpurpose"> — clears the compiled version of the specified template resource</span> </dt> <dt> <span class="refentrytitle"><a href="api.clear.config.html">clear_config()</a></span><span class="refpurpose"> — clears assigned config variables</span> </dt> <dt> <span class="refentrytitle"><a href="api.config.load.html">config_load()</a></span><span class="refpurpose"> — loads config file data and assigns it to the template</span> </dt> <dt> <span class="refentrytitle"><a href="api.display.html">display()</a></span><span class="refpurpose"> — displays the template</span> </dt> <dt> <span class="refentrytitle"><a href="api.fetch.html">fetch()</a></span><span class="refpurpose"> — returns the template output</span> </dt> <dt> <span class="refentrytitle"><a href="api.get.config.vars.html">get_config_vars()</a></span><span class="refpurpose"> — returns the given loaded config variable value</span> </dt> <dt> <span class="refentrytitle"><a href="api.get.registered.object.html">get_registered_object()</a></span><span class="refpurpose"> — returns a reference to a registered object</span> </dt> <dt> <span class="refentrytitle"><a href="api.get.template.vars.html">get_template_vars()</a></span><span class="refpurpose"> — returns assigned variable value(s)</span> </dt> <dt> <span class="refentrytitle"><a href="api.is.cached.html">is_cached()</a></span><span class="refpurpose"> — returns true if there is a valid cache for this template</span> </dt> <dt> <span class="refentrytitle"><a href="api.load.filter.html">load_filter()</a></span><span class="refpurpose"> — load a filter plugin</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.block.html">register_block()</a></span><span class="refpurpose"> — dynamically register block functions plugins</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.compiler.function.html">register_compiler_function()</a></span><span class="refpurpose"> — dynamically register a compiler function plugin</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.function.html">register_function()</a></span><span class="refpurpose"> — dynamically register template function plugins</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.modifier.html">register_modifier()</a></span><span class="refpurpose"> — dynamically register modifier plugin</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.object.html">register_object()</a></span><span class="refpurpose"> — register an object for use in the templates</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.outputfilter.html">register_outputfilter()</a></span><span class="refpurpose"> — dynamically register outputfilters</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.postfilter.html">register_postfilter()</a></span><span class="refpurpose"> — dynamically register postfilters</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.prefilter.html">register_prefilter()</a></span><span class="refpurpose"> — dynamically register prefilters</span> </dt> <dt> <span class="refentrytitle"><a href="api.register.resource.html">register_resource()</a></span><span class="refpurpose"> — dynamically register resources</span> </dt> <dt> <span class="refentrytitle"><a href="api.trigger.error.html">trigger_error()</a></span><span class="refpurpose"> — output an error message</span> </dt> <dt> <span class="refentrytitle"><a href="api.template.exists.html">template_exists()</a></span><span class="refpurpose"> — checks whether the specified template exists</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.block.html">unregister_block()</a></span><span class="refpurpose"> — dynamically unregister block function plugins</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.compiler.function.html">unregister_compiler_function()</a></span><span class="refpurpose"> — dynamically unregister a compiler function</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.function.html">unregister_function</a></span><span class="refpurpose"> — dynamically unregister template function plugin</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.modifier.html">unregister_modifier()</a></span><span class="refpurpose"> — dynamically unregister modifier plugin</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.object.html">unregister_object()</a></span><span class="refpurpose"> — dynamically unregister an object</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.outputfilter.html">unregister_outputfilter()</a></span><span class="refpurpose"> — dynamically unregister an output filter</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.postfilter.html">unregister_postfilter()</a></span><span class="refpurpose"> — dynamically unregister a postfilter</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.prefilter.html">unregister_prefilter()</a></span><span class="refpurpose"> — dynamically unregister a prefilter</span> </dt> <dt> <span class="refentrytitle"><a href="api.unregister.resource.html">unregister_resource()</a></span><span class="refpurpose"> — dynamically unregister a resource plugin</span> </dt> </dl></dd> <dt><span class="chapter"><a href="caching.html">14. Caching</a></span></dt> <dd><dl> <dt><span class="sect1"><a href="caching.html#caching.setting.up">Setting Up Caching</a></span></dt> <dt><span class="sect1"><a href="caching.multiple.caches.html">Multiple Caches Per Page</a></span></dt> <dt><span class="sect1"><a href="caching.groups.html">Cache Groups</a></span></dt> <dt><span class="sect1"><a href="caching.cacheable.html">Controlling Cacheability of Plugins' Output</a></span></dt> </dl></dd> <dt><span class="chapter"><a href="advanced.features.html">15. Advanced Features</a></span></dt> <dd><dl> <dt><span class="sect1"><a href="advanced.features.html#advanced.features.objects">Objects</a></span></dt> <dt><span class="sect1"><a href="advanced.features.prefilters.html">Prefilters</a></span></dt> <dt><span class="sect1"><a href="advanced.features.postfilters.html">Postfilters</a></span></dt> <dt><span class="sect1"><a href="advanced.features.outputfilters.html">Output Filters</a></span></dt> <dt><span class="sect1"><a href="section.template.cache.handler.func.html">Cache Handler Function</a></span></dt> <dt><span class="sect1"><a href="template.resources.html">Resources</a></span></dt> <dd><dl> <dt><span class="sect2"><a href="template.resources.html#templates.from.template.dir">Templates from $template_dir</a></span></dt> <dt><span class="sect2"><a href="template.resources.html#templates.from.any.dir">Templates from any directory</a></span></dt> <dt><span class="sect2"><a href="template.resources.html#templates.from.elsewhere">Templates from other sources</a></span></dt> <dt><span class="sect2"><a href="template.resources.html#default.template.handler.function">Default template handler function</a></span></dt> </dl></dd> </dl></dd> <dt><span class="chapter"><a href="plugins.html">16. Extending Smarty With Plugins</a></span></dt> <dd><dl> <dt><span class="sect1"><a href="plugins.html#plugins.howto">How Plugins Work</a></span></dt> <dt><span class="sect1"><a href="plugins.naming.conventions.html">Naming Conventions</a></span></dt> <dt><span class="sect1"><a href="plugins.writing.html">Writing Plugins</a></span></dt> <dt><span class="sect1"><a href="plugins.functions.html">Template Functions</a></span></dt> <dt><span class="sect1"><a href="plugins.modifiers.html">Modifiers</a></span></dt> <dt><span class="sect1"><a href="plugins.block.functions.html">Block Functions</a></span></dt> <dt><span class="sect1"><a href="plugins.compiler.functions.html">Compiler Functions</a></span></dt> <dt><span class="sect1"><a href="plugins.prefilters.postfilters.html">Prefilters/Postfilters</a></span></dt> <dt><span class="sect1"><a href="plugins.outputfilters.html">Output Filters</a></span></dt> <dt><span class="sect1"><a href="plugins.resources.html">Resources</a></span></dt> <dt><span class="sect1"><a href="plugins.inserts.html">Inserts</a></span></dt> </dl></dd> </dl> </div> </div> <div class="navfooter"> <hr> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> <a accesskey="p" href="chapter.debugging.console.html">Prev</a> </td> <td width="20%" align="center"> </td> <td width="40%" align="right"> <a accesskey="n" href="smarty.constants.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top">Chapter 10. Debugging Console </td> <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td> <td width="40%" align="right" valign="top"> Chapter 11. Constants</td> </tr> </table> </div> </body> </html>