Trace:
Differences ¶
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:tutorials:minitutorial:1.1.x [2009/01/07 21:04] – bibo | en:tutorials:minitutorial:1.1.x [2009/01/07 21:43] – bibo | ||
---|---|---|---|
Line 137: | Line 137: | ||
</ | </ | ||
- | What this code means is that **index** action of **default** controller retrieves a @@C@jResponseHtml@@ object through the @@M@getResponse()@@ method by passing " | + | What this code means is that **index** action of **default** controller retrieves a @@C@jResponseHtml@@ object through the @@M@getResponse()@@ method by passing " |
@@C@jResponseHtml@@ has a @@P@body@@ property, which is a @@C@jTpl@@ object. jTpl is a template engine provided by Jelix. | @@C@jResponseHtml@@ has a @@P@body@@ property, which is a @@C@jTpl@@ object. jTpl is a template engine provided by Jelix. | ||
- | In the action code above, you see a call @@C@assignZone()@@ method. This means : get the content of the ' | + | |
+ | In the action code above, you see a call to @@C@assignZone()@@ method. This means : get the content of the ' | ||
<code php> | <code php> | ||
Line 156: | Line 157: | ||
==== Response object ==== | ==== Response object ==== | ||
- | The @@C@jResponseHtml@@ object generates | + | a @@C@jResponseHtml@@ object generates |
+ | |||
+ | Let's define the title of the page. Add this in the @@M@index()@@ method, | ||
<code php> | <code php> | ||
Line 162: | Line 165: | ||
</ | </ | ||
- | Reload the page. The title of the page is now display in your browser title bar. But the page contains this: | + | Reload the page. The page title should |
{{en: | {{en: |