Claroline script template
From ClaroDevel
Writing a new PHP script to put into an existing application is not always easy. Most of the time, we don't know how to start, what we can do and what we should avoid to do.
[edit]
An Hello world example
The following template aims only to create an integrated page into Claroline saying the well known "hello world" message:
<?php
//Declaration of all session variables, used librairies,... of Claroline kernel
include("../inc/claro_init_global.inc.php");
//PART ONE : Type here your "logical business code"
$sayhello = "hello world";
//Display the Claroline header (top banner)
include($includePath."/claro_init_header.inc.php");
//PART TWO : Type here the code needed for the display, between the banner and the footer
echo $sayhello;
//Display the Claroline footer
include($includePath."/claro_init_footer.inc.php");
?>
