Je développe actuellement un site avec Joomla 1.5, et je met au poinr un certain nombre de composants. Mais je rencontre un problème récurrent avec chacun d'entre eux à chaque enregistrement de mes données je suis déconncté de l'administration et je me retrouve sur la page de login, il n'y a pa de problème de temp de session car cela se passe même après identification.
Y aurait il une chose à faire pour garder la session auverte.
le code de ma fonction store():
Code: Select all
function store($data)
{
$row =& $this->getTable();
$data = JRequest::get( 'post' );
// Bind the form fields to the hello table
if (!$row->bind($data)) {
$this->setError($this->_db->getErrorMsg());
return false;
}
// Make sure the record is valid
if (!$row->check()) {
$this->setError($this->_db->getErrorMsg());
return false;
}
// Store the table to the database
if (!$row->store()) {
$this->setError( $row->getErrorMsg() );
return false;
}
return true;
}//function