function deletelinkAction()
 {
     $del = new Admin_Model_Link();
     $id = $this->_request->getParam('id');
     $del->delete_link($id);
     trang_truoc();
 }
Beispiel #2
0
 /**
  * service
  * @param string $Servicio
  * @return array
  */
 public function estructuraValores($Servicio)
 {
     switch ($Servicio) {
         //            case 'BANNER':
         //                $util = new Server_Util();
         //                $ModelBanner = new Admin_Model_Banner();
         //                $totalBanners = $ModelBanner->BannersAll();
         //                $response = $util->groupArray($totalBanners, 'posicion');
         //                break;
         case 'BANNER':
             //                $util = new Server_Util();
             $ModelBanner = new Admin_Model_Banner2();
             $response = $ModelBanner->BannersAll();
             //                $response = $util->groupArray($totalBanners, 'codtbanner');
             break;
         case 'MUSICA':
             $ModelMusica = new Admin_Model_Musica();
             $response = $ModelMusica->MusicaAll();
             break;
         case 'JUEGO':
             $ModelJuego = new Admin_Model_Juego();
             $response = $ModelJuego->JuegoAll();
             break;
         case 'TEXT':
             $ModelText = new Admin_Model_Text();
             $response = $ModelText->textAll();
             break;
         case 'LINK':
             $ModelLink = new Admin_Model_Link();
             $response = $ModelLink->findAllByType(true);
             break;
         case 'SERVICIO':
             $ModelServicio = new Admin_Model_Servicio();
             $response = $ModelServicio->ServicioDescripcion();
             break;
         default:
             break;
     }
     return $response;
 }