0

Basic Example

-

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
0

jqmPhp version 0.01

-

jqmPhp is a package of PHP classes that facilitates the creation HTML files for use with jQuery Mobile Framework. All classes in the jqmPhp package can be converted to string and printed with an echo function.

echo(new jqmPhp());

Minimal Example

Make your first application with jqmPhp:

&lt;?php
 include 'lib/jqmPhp.php';
 $j = new jqmPhp();
 $j-&gt;addBasicPage('', 'Hello World', 'It\'s works!');
 echo $j;
?&gt;