public function indexAction() { /** * Buscas */ $modelBusca = new Model_DbTable_BucaCep(); $where = $modelBusca->getDefaultAdapter()->quoteInto("busca_valida", 1); $order = "busca_data desc"; $buscas = $modelBusca->fetchAll($where, $order); $this->view->buscas = $buscas; }
public function indexAction() { // Saloes Cadastrados $modelSalao = new Model_DbTable_Salao(); //$where = $modelSalao->getDefaultAdapter()->quoteInto("salao_pre_cadastro = ?", 0); $totalSalao = $modelSalao->getCount(); $this->view->totalSalao = $totalSalao->count; // Clientes Cadastrados $modelCliente = new Model_DbTable_Cliente(); $totalCliente = $modelCliente->getCount(); $this->view->totalCliente = $totalCliente->count; // Consultas CEP (validas) $modelBuscaCep = new Model_DbTable_BucaCep(); $where = $modelBuscaCep->getDefaultAdapter()->quoteInto('busca_valida = ?', 1); $totalConsultaCep = $modelBuscaCep->getCount(1, $where); $this->view->totalConsultaCep = $totalConsultaCep->count; // agendamentos $modelAgenda = new Model_DbTable_Agenda(); $where = $modelAgenda->getDefaultAdapter()->quoteInto("agenda_manual is null", null); $totalAgendamentos = $modelAgenda->fetchAll($where); $this->view->totalAgendamentos = $totalAgendamentos->count(); }