array( array('title' => 'Getting Started', 'chapter' => 'I', 'contents' => array( array('title' => 'What is Smarty?', 'chapter' => '1', 'contents' => array()), array('title' => 'Installation', 'chapter' => '2', 'contents' => array( 'Requirements', 'Basic Installation', 'Extended Setup', )))), array('title' => 'Smarty For Template Designers', 'chapter' => 'II', 'contents' => array( array('title' => 'Basic Syntax', 'chapter' => '3', 'contents' => array( 'Comments', 'Variables', 'Functions', 'Attributes', 'Embedding Vars in Double Quotes', 'Math', 'Escaping Smarty Parsing', )), array('title' => 'Variables', 'chapter' => '4', 'contents' => array( 'Variables assigned from PHP', 'Variables loaded from config files', '{$smarty} reserved variable', )), array('title' => 'Variable Modifiers', 'chapter' => '5', 'contents' => array( 'capitalize', 'cat', 'count_characters', 'count_paragraphs', 'count_sentences', 'count_words', 'date_format', 'default', 'escape', 'indent', 'lower', 'nl2br', 'regex_replace', 'replace', 'spacify', 'string_format', 'strip', 'strip_tags', 'truncate', 'upper', 'wordwrap', )), array('title' => 'Combining Modifiers', 'chapter' => '6', 'contents' => array()), array('title' => 'Built-in Functions', 'chapter' => '7', 'contents' => array( '{capture}', '{config_load}', '{foreach},{foreachelse}', '{if},{elseif},{else}', '{include}', '{include_php}', '{insert}', '{ldelim},{rdelim}', '{literal}', '{php}', '{section},{sectionelse}', '{strip}', )), array('title' => 'Custom Functions', 'chapter' => '8', 'contents' => array( '{assign}', '{counter}', '{cycle}', '{debug}', '{eval}', '{fetch}', '{html_checkboxes}', '{html_image}', '{html_options}', '{html_radios}', '{html_select_date}', '{html_select_time}', '{html_table}', '{mailto}', '{math}', '{popup}', '{popup_init}', '{textformat}', )), array('title' => 'Config Files', 'chapter' => '9', 'contents' => array( )), array('title' => 'Debugging Console', 'chapter' => '10', 'contents' => array()))), array('title' => 'Smarty For Programmers', 'chapter' => 'III', 'contents' => array( )), array('title' => 'Constants', 'chapter' => '11', 'contents' => array( 'SMARTY_DIR', 'SMARTY_CORE_DIR', ), array('title' => 'Smarty Class Variables', 'chapter' => '12', 'contents' => array( '$template_dir', '$compile_dir', '$config_dir', '$plugins_dir', '$debugging', '$debug_tpl', '$debugging_ctrl', '$autoload_filters', '$compile_check', '$force_compile', '$caching', '$cache_dir', '$cache_lifetime', '$cache_handler_func', '$cache_modified_check', '$config_overwrite', '$config_booleanize', '$config_read_hidden', '$config_fix_newlines', '$default_template_handler_func', '$php_handling', '$security', '$secure_dir', '$security_settings', '$trusted_dir', '$left_delimiter', '$right_delimiter', '$compiler_class', '$request_vars_order', '$request_use_auto_globals', '$error_reporting', '$compile_id', '$use_sub_dirs', '$default_modifiers', '$default_resource_type', )), array('title' => 'Smarty Class Methods()', 'chapter' => '13', 'contents' => array( 'append() -- append an element to an assigned array', 'append_by_ref() -- append values by reference', 'assign() -- assign values to the templates', 'assign_by_ref() -- assign values by reference', 'clear_all_assign() -- clears the values of all assigned variables', 'clear_all_cache() -- clears the entire template cache', 'clear_assign() -- clears the value of an assigned variable', 'clear_cache() -- clears the cache for a specific template', 'clear_compiled_tpl() -- clears the compiled version of the specified template resource', 'clear_config() -- clears assigned config variables', 'config_load() -- loads config file data and assigns it to the template', 'display() -- displays the template', 'fetch() -- returns the template output', 'get_config_vars() -- returns the given loaded config variable value', 'get_registered_object() -- returns a reference to a registered object', 'get_template_vars() -- returns assigned variable value(s)', 'is_cached() -- returns true if there is a valid cache for this template', 'load_filter() -- load a filter plugin', 'register_block() -- dynamically register block functions plugins', 'register_compiler_function() -- dynamically register a compiler function plugin', 'register_function() -- dynamically register template function plugins', 'register_modifier() -- dynamically register modifier plugin', 'register_object() -- register an object for use in the templates', 'register_outputfilter() -- dynamically register outputfilters', 'register_postfilter() -- dynamically register postfilters', 'register_prefilter() -- dynamically register prefilters', 'register_resource() -- dynamically register resources', 'trigger_error() -- output an error message', 'template_exists() -- checks whether the specified template exists', 'unregister_block() -- dynamically unregister block function plugins', 'unregister_compiler_function() -- dynamically unregister a compiler function', 'unregister_function -- dynamically unregister template function plugin', 'unregister_modifier() -- dynamically unregister modifier plugin', 'unregister_object() -- dynamically unregister an object', 'unregister_outputfilter() -- dynamically unregister an output filter', 'unregister_postfilter() -- dynamically unregister a postfilter', 'unregister_prefilter() -- dynamically unregister a prefilter', 'unregister_resource() -- dynamically unregister a resource plugin', )), array('title' => 'Caching', 'chapter' => '14', 'contents' => array( 'Setting Up Caching', 'Multiple Caches Per Page', 'Cache Groups', 'Controlling Cacheability of Plugins Output' )), array('title' => 'Advanced Features', 'chapter' => '15', 'contents' => array( 'Objects', 'Prefilters', 'Postfilters', 'Output Filters', 'Cache Handler Function', 'Resources', )), array('title' => 'Extending Smarty With Plugins', 'chapter' => '16', 'contents' => array( 'How Plugins Work', 'Naming Conventions', 'Writing Plugins', 'Template Functions', 'Modifiers', 'Block Functions', 'Compiler Functions', 'Prefilters/Postfilters' 'Output Filters', 'Resources', 'Inserts', ))), array('title' => 'Appendixes', 'chapter' => 'IV', 'contents' => array( array('title' => 'Troubleshooting', 'chapter' => '17', 'contents' => array( 'Smarty/PHP errors', )), array('title' => 'Tips & Tricks', 'chapter' => '18', 'contents' => array( 'Blank Variable Handling', 'Default Variable Handling', 'Passing variable title to header template', 'Dates', 'WAP/WML', 'Componentized Templates', 'Obfuscating E-mail Addresses', )), array('title' => 'Resources', 'chapter' => '19', 'contents' => array()), array('title' => 'BUGS', 'chapter' => '20', 'contents' => array()))));