Programación de módulos en Joomla 1.5

http://docs.joomla.org/JDocument
PROGRAMACION DE MODULOS
XML de los modulos

[php]

Yes
No

Select One
One
Two
Three
[/php]
[php]
<!–?php $manya_form_name      = $params—>get( ‘manya_form_name’ );
?>
[/php]
[php]
<!–?php /*Obtener un registro de la base de datos*/ function getArticles($article_id) { $db =& JFactory::getDBO(); $query = "SELECT * FROM #__TABLA WHERE id=$article_id"; $db—>setQuery($query);
$dbr_catalog = $db->loadObject();
return $dbr_catalog;
}

/*Obtener varios registros de la base de datos */
function getListArticles()
{
$db =& JFactory::getDBO();
$query = "SELECT * FROM #__TABLA";
$db->setQuery($query);
$dbl_client = $db->loadObjectList();
return $dbl_client;
}

?>

[/php]

post-author