Ejemplo n.º 1
0
 public function buscarPdfProducto($tipo, $fecha)
 {
     $query = new \yii\db\Query();
     $query->select('Boletin')->from('boletines')->where('Tipo LIKE :tipo', array(':tipo' => $tipo))->andWhere('Fecha = :fecha', array(':fecha' => $fecha))->orderBy('Fecha DESC')->limit(1);
     $rows = $query->all(Boletines::getDb());
     return $rows;
 }