Пример #1
0
 public function institucion($categoria, $id = null)
 {
     $this->options['categoria'] = $categoria;
     $this->options['id'] = $id;
     Estructuras::setOptions($this->options);
     $encabezado = Estructuras::getEncabezado();
     if ($encabezado) {
         $this->data = Estructuras::getEstructuraEncabezado($encabezado);
     }
     $response = ApiHelper::prepareResponse($this->data, 'institucion', $this->options, $this->total);
     Cache::add(Request::getRequestUri(), $response, Config::get('cache.time'));
     return $response;
 }