Location: PHPKode > projects > MicroMVC PHP Framework > localhost/views/posts/posts.php
<div id="content" class="grid_8 suffix_1">

	<h4><?php print $count; ?> Posts found in the database</h4>
	if(!empty($rows)) {
	foreach($rows as $row) { 
	<h2><?php print $row->title; ?></h2>
	<small>Posted by <?php print $row->author; ?></small>
	<p><?php print $row->text; ?></p>
	<?php } } ?>
	<h2><?php print count($this->db->queries); ?> Database Queries Run</h2>
	<?php $this->db->print_queries(); ?>

<div id="sidebar" class="grid_3">
	<p>On controller load, we connect to the database and 
	check it for the posts table. If not found we create it.
	Then we insert several posts and display them.</p>
Return current item: MicroMVC PHP Framework