Hello world:


Hello world expansion example.

Filename: "index.php"
<?php

// Hello world expansion example (with date)

// In an expansion you can not use output buffering php functions
// like ob_start(),ob_get_contents(),ob_end_clean() ...

// An expansion must start with this line
defined('WM3_cEXEC') or die('Denied');

// All the "echo" output will be rendered in the panel or page
echo "Hello World!<br>";

// You can use all the api of webmatic, $w3 its a memory allocated instance
// of "webmatic3" object and can be used to call non static api
$date = wm3Util::renderDate($w3,time(),$w3->getHomeLanguage(),true,'',false);

echo "Today its $date";

?>