function __init() { parent::__init(); $this->tpl->add_secondary('tags', db_fetch_array('SELECT name FROM tag ORDER BY name')); }
function edit() { $this->tpl->add('outlay', db_fetch_one('SELECT * FROM outlay WHERE id = ' . $this->entity_id)); parent::edit(); }