Example #1
0
<?php

session_start();
require_once dirname(__FILE__) . '/_bootstrap.php';
TTwigHandler::display('index', array('schools' => DBSchool::all(array('order' => 'institution asc', 'limit' => 30, 'offset' => 0)), 'sectiontitle' => 'Schools'));
Example #2
0
 function GetTowns()
 {
     return DBSchool::find_by_sql("select distinct province, ward, district, town from " . DBSchool::table_name() . " order by town asc");
 }