Merci de ta réponse @mikachu.
J'ai suivi ta méthode, je n'ai toujours aucun affichage en resultat de ma recherche.
J'en suis arrivé à là ->
TicketController
public function recherchedate(){
$finder2 = array( "and" => array(
"Ticket.created <=" => $_POST'data']'Post']'searchdate1'],
"Ticket.created >=" => $_POST'data']'Post']'searchdate2']
));
$results = $this->Ticket->find("all", array("conditions"=>$finder2));
}
Accueil.ctp
<h3>Saisissez les dates que vous recherchez pour afficher ses tickets:</h3>
<?php echo $this->Form->create('Post',array('type' => 'post','url' => array('controller' => 'tickets', 'action' => 'recherchedate'))); ?>
<?php echo $this->Form->date('searchdate1', array('label'=>"",'placeholder'=>'Recherche')); ?>
<?php echo $this->Form->date('searchdate2', array('label'=>"",'placeholder'=>'Recherche')); ?>
<?php echo $this->Form->submit('Rechercher', array('class' => 'btn btn-large btn-primary', 'style' => 'margin:10px;display:inline;')); ?>
<?php echo $this->Form->end(); ?>
rechechedate.ctp result de ma recherche
<div id="result" class="content">
<?php if(empty($result)){ echo '<h2>Aucun Resultat</h2>'; }
else{ ?>
<h2>
<tr><?php foreach ($result as $resultnom): ?>
<th>Nom : </th>
<td><?php echo $result'Client']'nom'] ?></tdtr>
</tr>
<?php endforeach ?>
</H2>
<?php echo $this->Form->end(array('label'=>'Retour','div'=>false, 'class'=>'btn btn btn-primary disabled','onclick' => "window.history.back();return false;", 'style' => 'display:block;margin-top: 10px;')); ?>
<h3>Liste des Tickets</h3>
<table class="table table-bordered table-hover table-striped table-striped-frs">
<tr>
<thead class="frs">
<th>Sujet</th>
<th>Resolu</th>
<th>Interlocuteur</th>
<th>Creation</td>
<th class="actions"><?php echo __('Actions'); ?></th>
</thead>
</tr>
<?php foreach ($result as $result): ?>
<tr>
<td><?php echo $search'Ticket']'sujet'] ?></td>
<td><?php echo $search'Ticket']'resolu'] ?> </td>
<td><?php echo $search'Ticket']'interlocuteur'] ?></td>
<td><?php echo $search'Ticket']'created'] ?> </td>
<td class="actions" style="width: auto;">
<?php echo $this->Html->link(__('<i class="icon-eye-open"></i> Voir'), array('action' => 'view', $search'Ticket']'id']), array('escape' => false)); ?></br>
</td>
</tr>
<?php endforeach; }?>
</table>
<hr>
</div>
La table ticket comporte bien des données sur les 7 derniers jours.
voici la vue web de ma recherche : 