Salve, ragazzi sto modificato un componente per joomla e vorrei che un checkbox fosse automaticamente spuntato.
Questo è il code ma non riesco a capire dove mettere checkbox=checked
Grazie a tutti!
Questo è il code ma non riesco a capire dove mettere checkbox=checked
PHP:
$lists ['terms'] = "";
if ($params->get ( 'enable_terms_conditions' )) {
$tlink="";
if ($params->get ( 'terms_conditions_id', 0 )) {
$tlink = ADSHelper::lbroute( 'index.php?option=com_content&view=article&id=' . $params->get ( 'terms_conditions_id' ) );
}
$terms = array ();
$terms [] = JHTML::_ ( 'select.option', 1, JText::sprintf ( 'I_AGREE', $tlink ), 'value', 'text' );
$lists ['terms'] = GHelper::checkbox ( $terms, 'terms_n_condtions', 'class="inputbox required" size="1"', 'value', 'text', 0 );
}
Grazie a tutti!