Exponent v2.7.2

compiler.exp_include.php

Smarty {exp_include} compiler plugin Author: Liu Song - loosen.copen@gmail.com File: compiler.include_if_exists.php Type: compiler Name: include_if_exists Version: 1.0.0 Source: http://code.google.com/p/smartyplugin-include-if-exists/downloads/list Purpose: Similar with "include" function, but only include the template file when it exists. Otherwise, a default file passed by parameter "else" will be included.

NOTE! debugging only works if view template is NOT already compiled templates are only re-compiled when the template is updated or the compiled file does not exist Updates Version 2.0: Updated to work with Smarty v3 and added Exponent framework template detection/selection Example: 1 {exp_include file="foo" assign="foo"} 2 {exp_include file="foo" else="default"}

Table of Contents

smarty_compiler_exp_include()  : string
Smarty {exp_include} compiler plugin Type: compiler<br> Name: exp_include<br> Purpose: includes appropriate file based on 'framework' with fallback

Functions

smarty_compiler_exp_include()

Smarty {exp_include} compiler plugin Type: compiler<br> Name: exp_include<br> Purpose: includes appropriate file based on 'framework' with fallback

smarty_compiler_exp_include( $_params,  &$compiler) : string
Parameters
$_params :
$compiler :
Tags
subpackage

Compiler

Return values
string

Search results