Trace:
Differences ¶
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
en:tutorials:minitutorial:1.0.3 [2008/04/03 22:50] – created laurent | en:tutorials:minitutorial:1.0.3 [2008/04/06 09:17] – laurent | ||
---|---|---|---|
Line 30: | Line 30: | ||
<code bash> | <code bash> | ||
- | php jelix.php | + | php jelix.php --application_name command_name [options] [parameters] |
</ | </ | ||
Line 50: | Line 50: | ||
| | ||
| | ||
- | | + | |
| | ||
Line 91: | Line 91: | ||
<code bash> | <code bash> | ||
- | chown www-data: | + | sudo chown www-data: |
- | chmod 755 ../../temp/exemple | + | sudo chmod 755 ../../temp/example |
</ | </ | ||
Line 106: | Line 106: | ||
+ | ===== Implementing an action ===== | ||
- | STOP HERE. tutorials not still updated for Jelix 1.0.3 | + | Let's implement a default action. An action is a process which generates a page. It is implemented as a method in a class called a " |
+ | <code php> | ||
+ | class defaultCtrl extends jController { | ||
+ | | ||
+ | $rep = $this-> | ||
+ | // this is a call for the ' | ||
+ | // remove this line ! | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | </ | ||
- | ===== Action implementation ===== | + | We state here that we retrieve a jResponseHtml object throw the // |
- | Let's implement | + | |
+ | jResponseHtml has a " | ||
<code php> | <code php> | ||
Line 121: | Line 134: | ||
| | ||
- | | + | $rep = $this-> |
- | | + | return $rep; |
} | } | ||
} | } | ||
</ | </ | ||
- | |||
- | We state here that we retrieve the jResponseHtml object (because of the HTML type as it is indicated), and we return it to indicate that its content must be returned to the browser. | ||
- | |||
==== Response object ==== | ==== Response object ==== |