PHP Integration Example
Description: This page contains sample code snippets to facilitate Developer integration. The source code is provided on a free and unrestricted basis.
In-place Editing Example (PHP)
Expected configuration:
- Web Server: Apache 2.2.4 as tested (earlier versions will do)
- Web Server extensions: PHP5 with XSL enabled
- Source code size: 4K
- Client: Internet Explorer, Firefox
This example contains a simple prototype of a Web application utilizing Developer to provide in-place editing for a set of topics. The entire application is very simple, containing one PHP file (index.php - 3Kb) and Developer. DITA topics are stored in a file system.
File index.php contains both XML-to-HTML conversion and Developer rendering logic, switching between view and edit mode depending on the context:

Download source code here: InlineEditingPHP.zip
Installation:
Make sure PHP is configured to support XSL (more...) Unpack contents of the archive into a Web server directory. Then open index.php file in your browser. |