Location: PHPKode > projects > Lithron > lithron-1.0.2/examples/500-templating_with_php.xml.php
<?php echo'<?xml version="1.0" encoding="UTF-8"?>' ?>

<?php require_once("DemoHelper.php") ?>

<lithron>
    <?php include("style.xml"); ?>
    <file name="<?php echo "lithron-".basename(__FILE__,"xml.php")."pdf" ?>">
		<page class="A4">
            <wrapper>
                <h1>Mirum commodo option</h1>
                <?php foreach(DemoHelper::getArray(3) AS $data): ?>
                <p>
                    <?php echo DemoHelper::getBlindText(250); ?></p>
                    <image height="3cm" width="5cm" src="<?php echo dirname(__FILE__) ?>/media/test1.jpg" />
                    <p><?php echo DemoHelper::getBlindText(250); ?>
                </p>
                <?php endforeach; ?>
            </wrapper>
        </page>
	</file>
</lithron>
Return current item: Lithron