Usually, ownCloud apps have files structured in the following directories:
ajax
appinfo
css
img
js
l10n
lib
templates
Not all the application will have all the directories. For a very small application, we may not need the lib
directory or we may not need the img
directory if our app doesn't have any image at all. Let us take a brief overview of each directory as follows:
ajax
: If our app has PHP scripts that answers AJAX requests then this is the directory in which we should place the scripts. This directory is not mandatory but is recommended to ensure that root of the app is clean and readable.appinfo
: This is perhaps the most important directory of the application. It identifies the app and has the basic code required for its functioning. We also define information such as license under which the app has been released, version of the app, author information, and so on in this directory.css
,img
, andjs
: As the name suggests CSS files go in the...