The PHP sample can conceptually be split into the parts Core, Application, Model-View-Controller (MVC), and Application Assets.
The Core part contains the main sample code, which handles the communication with the Switch Server.
The Application part contains the sample PHP application, which uses the Core part for all Switch-related communication.
The MVC component is a simple implementation of the Model-View-Controller pattern.
The Application assets are assets used by the application, as well as a folder to cache binary data received from the Switch Server.
Application asset component | Description |
---|---|
public/images/* | Standard images and icons for the application |
public/javascripts/* | Application javascripts |
public/stylesheets/* | Application styles |
public/thumbnails/* | In this folder, thumbnails will be stored. This folder is created automatically if it does not exist; the PHP user should have write access here. |