Commonly

In PHP, when you call a script, you can give parameters this way :

index.php?parametre=valeur&parametre_2=valeur_2http://www.copix.org/themes/default/img/modules/wiki/h3.png
http://www.copix.org/themes/default/img/modules/wiki/h3.png

With Copix

Copix (which use an MVC architecture) dispose of a "Front Controller" called in www/index.php (cf. arborescence) which is in charge to run the application.

Is this the index.php who receive the whole parameters of the query. This index file accepts 3 standard parameters reserved by copix :

Each of this parameter, if it isn't fill, take "default" for value .

Prepend mode (significant URL)

Copix has a management mode of URL called "prepend". This mode generates URL of the following format :

index.php/module_name/group_name/action_name

The interest of this mode is to generate URLs more readable by your visitors.

Default mode

Likewise, Copix allows you to manage URL in an habitual way, under this format :

index.php?module=module_name&group=group_name&action=action_name

See also

  • CopixUrl which is the URL manipulation class.
  • URL handler allows you to rewrite URL
  • CopixRequest allows you to get parameters send by the browser to your script.
  • Trigraph module group action to describe URL