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:
parent
f50bf834d9
commit
964e1919bc
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
class FiltersController extends AppController {
|
||||
public function index() {
|
||||
$this->set('filters', $this->Filter->find('all'));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
class Filter extends AppModel {
|
||||
public $useTable = 'Filters';
|
||||
public $primaryKey = 'Name';
|
||||
}
|
||||
?>
|
|
@ -0,0 +1,6 @@
|
|||
<ul>
|
||||
<?php foreach ($filters as $filter => $value): ?>
|
||||
<li><?php echo $value['Filter']['Name']; ?></li>
|
||||
<?php endforeach; ?>
|
||||
<?php unset($filter); ?>
|
||||
</ul>
|
Loading…
Reference in New Issue