From 301ab36559a0ed6e00be12ba51f280dd5c9864fd Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 14 Dec 2004 20:25:44 +0000 Subject: [PATCH] correct explanation of $foo->bar() --- .../language-basic-syntax/language-syntax-variables.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/designers/language-basic-syntax/language-syntax-variables.xml b/docs/en/designers/language-basic-syntax/language-syntax-variables.xml index 5e5d462b..08ed04e9 100644 --- a/docs/en/designers/language-basic-syntax/language-syntax-variables.xml +++ b/docs/en/designers/language-basic-syntax/language-syntax-variables.xml @@ -19,7 +19,7 @@ {$foo.bar} <-- display the "bar" key value of an array, similar to PHP $foo['bar'] {$foo.$bar} <-- display variable key value of an array, similar to PHP $foo[$bar] {$foo->bar} <-- display the object property "bar" -{$foo->bar()} <-- display the object method "bar" +{$foo->bar()} <-- display the return value of object method "bar" {#foo#} <-- display the config file variable "foo" {$smarty.config.foo} <-- synonym for {#foo#} {$foo[bar]} <-- syntax only valid in a section loop, see {section}