$base
Returns the current application’s main base.
Table of Contents
Description
This variable is an instance of the Base
class.
Example
<h3>
<?= i('Recent %s', 'Posts'); ?>
</h3>
<ul>
<?php foreach ($base->rows('SELECT "title" FROM "page" WHERE "parent" = ? ORDER BY "time" DESC LIMIT 5', [2]) as $row): ?>
<li>
<a href="#">
<?= $row['title']; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
$base
Returns the current application’s main base.