Back to Littlefoot Manual

In the previos examples, you learned the difference between [index.php] and [admin.php]. All we used was text, no PHP.

Throw some PHP in in your index.php. Try the following:

<h2>My App</h2>
<p><?php echo date('F j, Y'); ?></p>

or if you want to go pure PHP:

<?php

echo '<h2>MyApp</h2>';
echo '<p>';
echo date('F j, Y');
echo '</p>';

You can program an app without using any special littlefoot framework features.

But the Helpers do make some things easier.

blog comments powered by Disqus