public static function dropdown($fieldname, $selected = array()) { $template = new Template(); $template->assignParam('fieldname', $fieldname); $template->assignParam('selected', $selected); $template->assignParam('objetos', Servico::listar()); return $template->render("servico/dropdown.phtml", true); }
public function getServicos() { $objetos = Servico::listar(" WHERE servico_id in(SELECT servico_id FROM contratoservico WHERE contratoservico.evento_id = '{$this->getEvento_id()}')"); return $objetos; }