- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
<?php
class AppController extends Controller {
var $uses = array('Config', "Cats");
function beforeFilter()
{
$config1 = $this->Config->find('list', array('fields'=>array('key', 'value')));
$category1 = $this->Cats->findAll();
$this->set(compact('config1'));
$this->set(compact('category1'));
}
}
?>
Комментарии (2) RSS