Error: The datasource configuration

Par Hackparadize, il y a 12 ans


Bonjour à tous j'aurai besoin de vos lumières pour résoudre mon souci qu'est le suivant :
Je peux crée une donnée (exemple ici une cadence) donc je met quotidien il ce met dans la base de donnée, donc après ça, j'aimerai pouvoir modifier ou même le supprimer sauf que quand je clic sur les actions qui font ça :
" Error: The datasource configuration bddexpe was not found in database.php. "
Je ne comprends pas pourquoi ça me met ce message d'erreur par ce que je peux écrire, mais une fois que je veux modifier ou supprimer ça ne fait rien ça me renvois un message d'erreur

Mes codes :
Controlleur
[code]<?php
App::uses('AppController', 'Controller');
/**

/**

/**

/**

/**

/**

/**

Mon edit.ctp
[code]<div class="cadences form">
<?php echo $this->Form->create(); ?>
<fieldset>
<legend><?php echo ('Gestion des cadences'); ?></legend>
<?php
echo $this->Form->input('id');
echo $this->Form->input('name');
?>
</fieldset>
<?php echo $this->Form->end(
('Envoyer')); ?>
</div>
<div class="actions">
<h3><?php echo __('Actions'); ?></h3>
<ul>

    <li><?php echo $this->Form->postLink(__('Suppression d\'une cadence'), array('action' => 'delete', $this->Form->value('Cadence.id')), null, __('Confirmer suppression # %s?', $this->Form->value('Cadence.id'))); ?></li>
    <li><?php echo $this->Html->link(__('Liste des cadences'), array('action' => 'index')); ?></li>
</ul>

</div>
[/code]

Mon index.ctp
[code]<div class="cadences index">
<h2><?php echo ('Cadences'); ?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort(' '); ?></th>
<th><?php echo $this->Paginator->sort('Nom'); ?></th>
<th class="actions"><?php echo
('Actions'); ?></th>
</tr>
<?php foreach (cadences as $cadence): ?> <tr> <td><?php echo h(cadence['Cadence']['id']); ?> </td>
<td><?php echo h($cadence['Cadence']['name']); ?> </td>
<td class="actions">
<?php echo $this->Html->link(('Edition'), array('action' => 'edit', $cadence['Cadence']['id'])); ?>
<?php echo $this->Form->postLink(
('Suppression'), array('action' => 'delete', $cadence['Cadence']['id']), null, ('Are you sure you want to delete #%s?', $cadence['Cadence']['id'])); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<p>
<?php
echo $this->Paginator->counter(array(
'format' =>
('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
));
?> </p>
<div class="paging">
<?php
echo $this->Paginator->prev('< ' . ('previous'), array(), null, array('class' => 'prev disabled'));
echo $this->Paginator->numbers(array('separator' => ''));
echo $this->Paginator->next(
('next') . ' >', array(), null, array('class' => 'next disabled'));
?>
</div>
</div>
<div class="actions">
<h3><?php echo ('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(
('Nouvelle cadence'), array('action' => 'add')); ?></li>
</ul>
</div>
[/code]

Mon add.ctp
[code]<div class="cadences form">
<?php echo $this->Form->create('Cadence'); ?>
<fieldset>
<legend><?php echo ('Ajout d\'une cadence'); ?></legend>
<?php
echo $this->Form->input('name');
?>
</fieldset>
<?php echo $this->Form->end(
('Envoyer')); ?>
</div>
<div class="actions">
<h3><?php echo ('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(
('Liste des cadences'), array('action' => 'index')); ?></li>
</ul>
</div>
[/code]
Auriez vous des idées pourquoi ça fait ça ?

En vous remerciant d'avoir jeter un oeil dessus

Cordialement.

Aucune réponse