Quick links: Content - sections - sub sections
EN

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:tutorials:minitutorial:1.0.3 [2008/04/06 09:43] laurenten:tutorials:minitutorial:1.0.3 [2008/04/06 09:50] laurent
Line 218: Line 218:
  
 {{en:tutorials:minitutorial:minituto_2_en.png}} {{en:tutorials:minitutorial:minituto_2_en.png}}
 +
 +==== Your first content ====
 +
 +Let's define the content of our start page:
 +
 +<code php>
 +class defaultCtrl extends jController {
 +
 +   function index () {
 +      $rep = $this->getResponse('html');
 +      $rep->title = 'Hello World !';
 +      
 +      $rep->body->assign('MAIN',"<p>Hello !</p>");
 +    
 +      return $rep;
 +   }
 +}
 +</code>
 +
 +So here, we put "<p>Hello !</p>" in the "MAIN" template variable. We now see:
 +
 +{{en:tutorials:minitutorial:minituto_3_en.png}}
 +
 +
 +
 +
 +
 +STOP HERE. tutorial not updated in the below content.
 +
 +
  
  

en/tutorials/minitutorial/1.0.3.txt · Last modified: 2008/11/19 15:02 by 127.0.0.1

Recent changes RSS feed Creative Commons License