Trace: • community • 1.0.11 • credits • 1.2 • faq • 1.7.x • minitutorial • minitutoriel • 1.7.x • 1.1
Differences ¶
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:tutorials:minitutorial:1.1.x [2009/01/07 21:50] – bibo | en:tutorials:minitutorial:1.1.x [2012/04/15 08:36] (current) – laurent | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Download and installation ===== | ===== Download and installation ===== | ||
- | First, [[en: | + | First, [[en: |
Then, unpack the archive file you have downloaded, with your archiver software companion. For example, with tar: | Then, unpack the archive file you have downloaded, with your archiver software companion. For example, with tar: | ||
Line 178: | Line 178: | ||
class myHtmlResponse extends jResponseHtml { | class myHtmlResponse extends jResponseHtml { | ||
- | public $bodyTpl = 'exemple~main'; | + | public $bodyTpl = 'example~main'; |
protected function doAfterActions() { | protected function doAfterActions() { | ||
Line 186: | Line 186: | ||
</ | </ | ||
- | This " | + | This " |
<code html> | <code html> | ||
- | < | + | < |
| | ||
</ | </ | ||
Line 195: | Line 195: | ||
@@{$MAIN}@@ is an instruction which says: display the content of the template variable named @@V@MAIN@@. {@jelix~jelix.newapp.h1@} is an instruction which says: display the localized string (a string which value depends on the lang) identified by the " | @@{$MAIN}@@ is an instruction which says: display the content of the template variable named @@V@MAIN@@. {@jelix~jelix.newapp.h1@} is an instruction which says: display the localized string (a string which value depends on the lang) identified by the " | ||
- | The method | + | @@M@doAfterActions@@ |
Now you know why there is a content displaying on the start page. Now let's modify the template with this content: | Now you know why there is a content displaying on the start page. Now let's modify the template with this content: |