buenas tengo un problema con el paginador ajax, cuando digamos doy clic en mi zona administrador al boton de paginacion 1, este me recarga todo absolutamente todo el contenido del sitio con todo y header en el div contenedor, pero cuando digamos avanzo con el paginador el funciona perfectamente, y me recarga lo que debe
codigo de la vista index <?php $this->Paginator->options(array( 'update' => '#contenedor-rentas', 'before' => $this->Js->get("#procesando")->effect('fadeIn', array('buffer' => false)), 'complete' => $this->Js->get("#procesando")->effect('fadeOut', array('buffer' => false)) )); $btnadmin='btn btn-default btnadminlist'; ?> <div class="progress oculto" id="procesando"> <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"> <span class="sr-only">100% Complete</span> </div> </div> <div class="row no_padding"> <div class="table-responsive" id="contenedor-rentas"> <div class="row no_padding rowtitulo"> <div class="col-sm-4 no_padding"> <h2 style="margin: 0;"><?php echo __('Reservas'); ?></h2> </div> <div class="col-sm-8 text-right"> <?php echo $this->Html->link('Crear renta',array('controller'=>'rentas','action'=>'form'),array('style'=>'background-color: #00AEEF !important;color:#ffffff;','class'=>'btn btn-default')); ?> </div> </div> <div class='col-sm-12 no_padding'> <table class="table table-hover"> <thead class="headlist"> <tr> <th><?php echo $this->Paginator->sort('id','<button class="'.$btnadmin.'">ID</button>',array('escape' => false)); ?></th> <th><?php echo $this->Paginator->sort('estado','<button class="'.$btnadmin.'">Estado</button>',array('escape' => false)); ?></th> <th><?php echo $this->Paginator->sort('Cliente.nombres','<button class="'.$btnadmin.'">Cliente</button>',array('escape' => false)); ?></th> <th class='text-center'><?php echo $this->Paginator->sort('fecha_inicio','<button class="'.$btnadmin.'">Fecha inicio</button>',array('escape' => false)); ?></th> <th class='text-center'><?php echo $this->Paginator->sort('fecha_fin','<button class="'.$btnadmin.'">Fecha fin</button>',array('escape' => false)); ?></th> <th class="textolistadmin"><span><?php echo __('Acciones'); ?></span></th> </tr> </thead> <tbody> <?php foreach ($rentas as $renta): ?> <tr> <td><?php echo h($renta['Renta']['id']); ?> </td> <td><?php echo h($renta['Renta']['estado']); ?> </td> <td><?php echo h($renta['Cliente']['nombres']); ?> </td> <td><div class='row text-center'><?php echo h($renta['Renta']['fecha_inicio']);?></div><div class='row text-center'><?php echo h($renta['Lugaresentrega']['nombre']); ?></div></td> <td><div class='row text-center'><?php echo h($renta['Renta']['fecha_fin']); ?></div><div class='row text-center'><?php echo h($renta['Lugaresdevuelve']['nombre']); ?></div></td> <td class="actions"> <?php echo $this->Html->link('Editar',array('controller'=>'rentas','action'=>'edit',$renta['Renta']['id']),array('class'=>'btn btn-success'));?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <div class="row"> <?php if($this->Paginator->counter('{:pages}') > 1) { echo $this->Paginator->prev('< ' . __('atras'), array(), null, array('class' => 'btn btn-default prev disabled', 'tag' => 'span')); echo $this->Paginator->numbers(array('separator' => '', 'class' => 'btn btn-default', 'currentClass' => 'disabled', 'tag' => 'span')); echo $this->Paginator->next(__('siguiente') . ' >', array(), null, array('class' => 'btn btn-default prev disabled', 'tag' => 'span')); } echo $this->Js->writeBuffer(); ?> </div> </div> </div> codigo del controlador accion index $this->layout = ($this->request->is("ajax")) ? "ajax" : "admin"; $this->Renta->Behaviors->attach('Containable'); $this->Renta->recursive = 0; $this->paginate = array('limit' => 10); $this->set('rentas', $this->Paginator->paginate()); -- Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" de Grupos de Google. Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a cakephp-es+unsubscr...@googlegroups.com. Para publicar una entrada en este grupo, envía un correo electrónico a cakephp-es@googlegroups.com. Visita este grupo en http://groups.google.com/group/cakephp-es. Para obtener más opciones, visita https://groups.google.com/d/optout.