Hotaru Docs


Creating a Page

It's very easy to make a physical, static page with Hotaru CMS. Here's an example:

1. Create a faq.php file and put it in your theme folder. You can use HTML and/or PHP in your file, like this:

<p>THIS IS THE FAQ for <?php echo SITE_NAME; ?></p>

2. Load it in your browser:

Default URL:
Friendly URL:

That's it, but if you are designing a theme or plugin and want to link to the page, you should use Hotaru's url function which automatically determines whether to output a standard url or a friendly one:

<a href="<?php echo $h->url(array('page'=>'faq')); ?>">FAQ</a>
Getting StartedDesign and LayoutPlugin DevelopmentAdvanced TopicsFunction ReferenceTroubleshooting