Quick links: Content - sections - sub sections
EN

Trace:

This is an old revision of the document!


Mini Tutorial

The goal of this tutorial is to quickly show you how you can realize an application. To start, install Jelix as indicated on the installation page. We will consider that you are using the default configuration, then you didn't modify the tree structure of Jelix.

Jelix scripts

After that, open a console and go to the lib/jelix-scripts/ directory.

 under linux :  cd lib/jelix-scripts/
 under windows : cd lib\jelix-scripts\

This directory contains a script, jelix.php, which can make easy the creation and modification of different files of an application based on Jelix. You have to use it with the command line version of PHP and give it as parameter a Jelix command with some other parameters and options.

php jelix.php [--application_name] command_name [options] [parameters]

To avoid giving the name of the application for each command, use this one :

  export JELIX_APP_NAME=helloapp
  set JELIX_APP_NAME=helloapp (windows)

Creation of an application

Let's create the tree structure of the application using the createapp command :

php jelix.php createapp

You will then get a helloapp/ directory, at the same level as the lib/ directory. His content is the following :

helloapp/
   modules/       the modules of your application
   plugins/       the plugins of your application
   var/config/    the configuration files of your application
   var/log/       the log files
   var/themes/    the different possible themes in your application
   var/overloads/ will contain the different files that will have redefined, from other modules. 
   www/           the root of the site

en/minitutorial.1158249262.txt.gz · Last modified: 2006/10/17 20:31 (external edit)

Recent changes RSS feed Creative Commons License