LM-Light Standard : Creating Courses : On Each Page
Any page that requires either:
- authentication; or
- access to the LM-Light routines
must include the following LM-Light tag at the top of the page:
<?php require "LM-Light.php"; ?>
Very Important: This tag must be the first thing in the file, and must precede all other LM-Light tags.
Examples
The following example is valid:
<?php require "LM-Light.php"; ?>
<?php LMsetBookmark(); ?>
<html>
<head>
<title>A Sample Page from a Course</title>
</head>
<body bgcolor="#ffffff">
[the body of the page]
</body>
</html>
The following example is NOT valid - the 'require "LM-Light.php";' tag should precede all other LM-Light tags:
<?php LMsetBookmark(); ?>
<?php require "LM-Light.php"; ?>
<html>
<head>
<title>A Sample Page from a Course</title>
</head>
<body bgcolor="#ffffff">
[the body of the page]
</body>
</html>
|