Initial commit of Filters MVC.

The filters will be split from the events in this interface, where
in the classic interface, they were combined.
This commit is contained in:
Kyle Johnson 2013-06-04 13:23:00 -04:00
parent f50bf834d9
commit 964e1919bc
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
class FiltersController extends AppController {
public function index() {
$this->set('filters', $this->Filter->find('all'));
}
}
?>

6
web/app/Model/Filter.php Normal file
View File

@ -0,0 +1,6 @@
<?php
class Filter extends AppModel {
public $useTable = 'Filters';
public $primaryKey = 'Name';
}
?>

View File

@ -0,0 +1,6 @@
<ul>
<?php foreach ($filters as $filter => $value): ?>
<li><?php echo $value['Filter']['Name']; ?></li>
<?php endforeach; ?>
<?php unset($filter); ?>
</ul>