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 revision
Previous revision
Next revisionBoth sides next revision
en:tutorial:application-creation [2006/09/20 15:45] doublefaceen:tutorial:application-creation [2006/11/08 11:05] – (old revision restored) 127.0.0.1
Line 33: Line 33:
   set JELIX_APP_NAME=actu.org             # under windows   set JELIX_APP_NAME=actu.org             # under windows
 </code> </code>
 +
  
  
Line 55: Line 56:
  
 Check that the temp/actu.org directory, that you juste created has write permissions for the web server. Check that the temp/actu.org directory, that you juste created has write permissions for the web server.
 +
 +
 +===== Creation of a module =====
 +
 +Now that we have a skeleton of application, we will have to create a module, because for the moment, our application can do nothing since there is no defined action. Indeed, we will have to declare and implement some actions. An action can be a page display, backup of a form, a webservice call, etc.
 +
 +The actions are grouped in distinct modules according to the domain, the fonction to which they are linked. We will for example create a module which will group the actions meant to display and manage the news. To do that, you have the createmodule command, which takes as parameter the name of the module that will be created.
 +
 +<code bash>
 +php jelix.php createmodule news
 +</code>
 +
 +By typing this command, Jelix has created for you a module named news with all its tree structure and some mandatory files :
 +
 +   actu.org/modules/
 +              news/                the directory of the module
 +                module.xml          file discribing the identity of the module
 +                actions.xml         file declaring the actions of the module
 +                controllers/       the action processing classes.
 +                   default.classic.php   a controller
 +                classes/            your business classes and services
 +                daos/               the object-relationnal mapping files
 +                locales/            locale files ("properties" files)
 +                    en_EN/
 +                    fr_FR/
 +                templates/          templates of the module
 +                zones/              objects processing specific zones in a page
 +
 +We are now ready to define the actions.
 +
 +----
 +   * Next : [[en:tutorial:action-creation|Creation of an action]]
 +   * [[en:tutorial|Back to the summary]]

en/tutorial/application-creation.txt · Last modified: 2007/09/17 22:42 by 127.0.0.1

Recent changes RSS feed Creative Commons License