Ejemplo n.º 1
0
 public function seccionAction($slug_seccion, $slug_categoria = null)
 {
     $di = new Phalcon\DI();
     $Seccion = new Seccion($slug_seccion, $slug_categoria, $this->dispatcher);
     //      $Seccion->alert = \Rpp\Services\Get\Alert::active();
     $di->set('model', $Seccion);
     $di->set('viewCache', $this->viewCache);
     $this->view->setDI($di);
     $Analytics = new \Rpp\Services\Analytics\Visits\Load\MasVisitadas($Seccion->slug);
     $Analytics->calculate();
 }
Ejemplo n.º 2
-1
 public function categoriaAction($slug_categoria)
 {
     $di = new Phalcon\DI();
     $Seccion = new Seccion('blog', $slug_categoria, $this->dispatcher);
     $di->set('model', $Seccion);
     $di->set('viewCache', $this->viewCache);
     $this->view->setDI($di);
     $Analytics = new \Rpp\Services\Analytics\Visits\Load\MasVisitadas('blog');
     $Analytics->calculate();
 }