From 370c682479edb2fd3f40ee701f7bb4ef088e8283 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 7 Apr 2006 03:32:11 +0000 Subject: Breaking change!! Optimized the representation and evaluation of template expression, statements and databind tags. --- demos/quickstart/protected/pages/Controls/Expression.page | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls/Expression.page') diff --git a/demos/quickstart/protected/pages/Controls/Expression.page b/demos/quickstart/protected/pages/Controls/Expression.page index c87f0ba4..80a45a3a 100644 --- a/demos/quickstart/protected/pages/Controls/Expression.page +++ b/demos/quickstart/protected/pages/Controls/Expression.page @@ -4,23 +4,14 @@

-TExpression evaluates a PHP expression and displays the evaluation result. To specify the expression to be evaluated, set the Expression property. In a control template, expression tags are often used instead of the complete component tags when the main purpose is to display the evaluation result of some PHP expression. For example, the following two tags are equivalent, -

- -<com:TExpression Expression="date()" /> -<%= date() %> - - -

-TExpression evaluates the expression during the rendering control lifecycle. +TExpression evaluates a PHP expression and displays the evaluation result. To specify the expression to be evaluated, set the Expression property. Note, TExpression evaluates the expression during the rendering control lifecycle.

-The context of the expression in a TExpression control is the control itself. That is, $this represents the control object if it is present in the expression. For example, both of the following template tags will display the title of the page containing the TExpression control. +The context of the expression in a TExpression control is the control itself. That is, $this represents the control object if it is present in the expression. For example, the following template tag will display the title of the page containing the TExpression control.

<com:TExpression Expression="$this->Page->Title" /> -<%= $this->Page->Title %>

-- cgit v1.2.3