diff --git a/README b/README index 113640a2..f1957d62 100644 --- a/README +++ b/README @@ -46,15 +46,6 @@ LEXER/PARSER! Smarty 3 now uses a real lexing tokenizer and a parser. This opens all kinds of doors such as template math, function recursion, among many other things. -$smarty OBJECT SINGLETON - -Do you need a reference to the Smarty object instance? No problem: - -$smarty = Smarty::instance(); - -You can do this from anywhere in your PHP code, and get the instance. You can -be buried in a php function, in a class method, or wherever. The $smarty -object is quickly obtainable. Since all internal plugins are now classes (did I mention that yet?), They all extend Smarty_Internal_PluginBase, which makes $this->smarty a reference to the Smarty @@ -83,18 +74,6 @@ Smarty will not compile it, it will just get executed as PHP. You have full reign of PHP in your template code. Your assigned template vars are available simply as , etc. -How to add modifiers in PHP templates: -Modifier are added like a method to the variables. -escape('html')?> -Modifier can be chained. -truncate(5)->escape('html')?> - -How to output function results in PHP templates: -Functions will require a $_f prefix. -time()?> -Again you can add modifier. -time()->truncate(2)?> - WHAT IS NEW IN SMARTY TEMPLATE SYNTAX