Location: PHPKode > projects > PHP Doc System > content/sample_2.php
<?php

// PHP Doc System Module: Sample 2

$sample_2 = new module("sample_2" // key
                      ,"Sample 2" // title
                      ,"Sample 2" // link text
                      ,array("sample_3"
                            )
                      ,"" // summary
                      ,"" // content
                      ,array()
                      );

$current_module = $sample_2;
include("import_modules.inc.php");

ob_start(); // buffering content
	ob_start(); // buffering summary
?>
<p>Sample 2 summary info here.</p>
<?php
	$sample_2->summary = ob_get_contents();
	ob_end_clean();
	print($sample_2->summary);
?>
<p>The rest of the content goes here.</p>

<p>Here we can include the summary from Sample 3 if we want to. 

<?php print($sample_3->summary); ?>

<?php
$sample_2->content = ob_get_contents();
ob_end_clean();
?>
Return current item: PHP Doc System