smarty\ViewRenderer __call()

__call() public method Mechanism to pass a widget's tag name to the callback function. Using a magic function call would not be necessary if Smarty would support closures. Smarty closure support is announced for 3.2, until its release magic function calls are used to pass the tag name to the callback. public string __call ( $method, $args )$method string $args array throws yii\base\InvalidConfigException throws BadMethodCallException

smarty\ViewRenderer resolveTemplateDir()

resolveTemplateDir() protected method The directory can be specified in Yii's standard convention using @, // and / prefixes or no prefix for view relative directories. protected string resolveTemplateDir ( $dir )$dir string Directory name to be resolved return string The resolved directory name

smarty\ViewRenderer render()

render() public method Renders a view file. This method is invoked by yii\web\View whenever it tries to render a view. Child classes must implement this method to render the given view file. public string render ( $view, $file, $params )$view yii\web\View The view object used for rendering the file. $file string The view file. $params array The parameters to be passed to the view file. return string The rendering result

smarty\ViewRenderer init()

init() public method Instantiates and configures the Smarty object. public void init ( )

smarty\ViewRenderer aliasHandler()

aliasHandler() public method Resolves Yii alias into file path public boolean|string aliasHandler ( $type, $name, &$content, &$modified, \Smarty $smarty )$type string $name string $content string $modified string $smarty \Smarty return boolean|string Path to file or false if it's not found

smarty\ViewRenderer $widgets

$widgets public property Widget declarations public array $widgets = ['functions' => [], 'blocks' => []]

smarty\ViewRenderer $smarty

$smarty protected property The Smarty object used for rendering protected \Smarty $smarty = null

smarty\ViewRenderer $pluginDirs

$pluginDirs public property Add additional directories to Smarty's search path for plugins. public array $pluginDirs = []

smarty\ViewRenderer $options

$options public property Additional Smarty options See also http://www.smarty.net/docs/en/api.variables.tpl. public array $options = []

smarty\ViewRenderer $imports

$imports public property Class imports similar to the use tag public array $imports = []