Ocs-server/Gfx4/Folders and MVC

From KDE Community Wiki
Revision as of 21:55, 27 July 2015 by Snizzo (talk | contribs) (Created page with "The Gfx frameworks consist of a root directory that contains basically the source directory that's (still) called ''gfx3'', a standard ''index.php'' and ''.htaccess'' file res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Gfx frameworks consist of a root directory that contains basically the source directory that's (still) called gfx3, a standard index.php and .htaccess file responsible for the rewriting stuff.

In order to prepare your server to host a Gfx application please refer to the Configuring a webserver as host guide, since ocs-server is built around Gfx (or, in some cases, the contrary).

Unzipping our latest package in your DocumentRoot will create a standard directory tree for you.

Gfx root folder structure

  • index.php: handles every request. Shouldn't be moved or modified.
  • .htaccess: responsible for Gfx URL rewriting, shouldn't be moved or modified.
  • /gfx3/src: contains all the source of Gfx
  • /gfx3/libs: put here any php file that will be loaded and handled as an external library available for all subsites.
  • /gfx3/docs: contains some small hand txt documentation files (can be outdated)

Main site and subsites folder structure

  • /config: contains all the configuration files of the website. The presence of this folder will transform a simple subfolder to an entire subsite.
  • /models: contains all the models
  • /controllers: contains all the controllers
  • /views: contains all the views
  • /libs: contains all the third part libraries