Description

This a basic example, the source is included in jqmPhp Package.

live demo

Source Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 /**
 * Example 1 - This is a minimalist example.
 * All classes in the jqmPhp package can be converted
 * to string and printed with an 'echo' function.
 * @package jqmPhp
 * @filesource
 */
 
 /**
 * Include the jqmPhp class.
 */
 include 'lib/jqmPhp.php';
 
 $j = new jqmPhp();
 $j->addBasicPage('example-1', 'Example 1', '<h1>Hello World</h1><p>This is a basic page!</p><a href="example-2.php#">Exemple 2</a>');
 echo $j;
?>
live demo