Showing your pages
You can fill your module pages with information in three different ways, here presented from simplest to best:
1. You can use regular echo statements without any use of templates at all. 2. You can use templates to set up positioned blocks, and fill the blocks with prepared HTML strings. 3. You can use the template system as it's meant to be used: Make sure that all HTML tags are in the template, and assign raw data to the templates.
What method you should choose depends on the complexity of your module project, and also on how much of the code you'd like to reuse later.
Examples
Say we've got an array and we want to print it onscreen using each method:
* $myArray = array("Tribal Tech", "Face First", "Tuna Laguna", "Try it!", "Hoven Droven", "Swedish folk music done cool");
We'll just edit the minimal module files for each method, so you may want to copy and rename the folder so that you can pop the original files on top of the old ones to "reset" as we move on...
1.2.1 using echo
1.2.2 using a simple template
1.2.3 an active template
back to dev:Tutorials


![[Main Page]](/modules/mediawiki/images/mediawiki.png)






