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

Next revision
Previous revision
Last revisionBoth sides next revision
en:tutorials:jurl [2012/01/23 17:08] – created foxmasken:tutorials:jurl [2012/01/31 10:34] – [the simplest] foxmask
Line 15: Line 15:
 </code> </code>
  
-But, if you install this application in an environment where the path is different, on the click of this link will lead to a 404 error page+But, if you install this application in an environment where the path is different, one the click of this link will lead to a 404 error page
  
 ===== 2 - writting URL "à la jelix" ===== ===== 2 - writting URL "à la jelix" =====
Line 28: Line 28:
  
 Where :  Where : 
 +  - ''{jurl ...} '' is the template plugin that will build the URL for you
   - __news__ is the __module__ name,    - __news__ is the __module__ name, 
-  - __default__ is the name of my __contrôleur__+  - __default__ is the name of my __controller__
   - and  __index__ is my __method__.   - and  __index__ is my __method__.
  
Line 43: Line 44:
 A concret case of this usage through a controller, could be for a form which always uses the same fields to create and edit a news, but the action itself will be different. A concret case of this usage through a controller, could be for a form which always uses the same fields to create and edit a news, but the action itself will be different.
  
-Let's have a look to the following example :+Let's have a look to the following example which illustrates how to assign the result of jUrl to a template
  
 ==== the controller ==== ==== the controller ====

en/tutorials/jurl.txt · Last modified: 2012/04/14 18:44 by laurent

Recent changes RSS feed Creative Commons License