- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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'));
}
}
?>
guesto 17.06.2016 00:25 # 0
KQGqNsI 25.08.2021 04:49 # 0