Bonjour,
J'ai ajouté dans un form un getSelect qui se trouve dans le model c_noe:
public function getSelect(){
$tab=$this->findAll();
$tSelect=array();
if($tab){
foreach($tab as $oRow){
$tSelect[ $oRow->noe_id ]=$oRow->noe_tuy;
}
}
return $tSelect;
}
puis le list de c_jec qui est un form:
<form>
<th>jec_tuy</th>
<td><?php echo $oPluginHtml->getSelect('jec_tuy',$this->tJoinmodel_c_noe,$this->oC_jec->jec_tuy)?></td>
</td>
</form>
et dans le main de C_jec jai ajouté :
$oView->tJoinmodel_c_noe=model_c_noe::getInstance()->getSelect();
J'ai ce msg d'erreur:
Fatal error: Call to a member function getSelect() on a non-object in C:\xampp\htdocs\mkframeworkv472_2\data\genere\bloe2\module\selform\view\list.php on line 0
Qu'est-ce qui manque ?
Partager