http://dev.joomla.org/component/option, ... lo_world2/
there is a code update to that or it doesn't work.....
Code: Select all
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
class hello_HTML {
function show_names_html( $names ) {
foreach ($names as $name) {
echo '<a href="index.php?option=com_hello&task=view&id='. $name[0] .'">'. $name[1] .'</a><br/>';
}
}
function view_name_html( $name ) {
echo 'Hello '. $name .' in our World!';
}
}
?>
There is no task var for it to use the switching statment... so it will always fall thru the view all names...
so the edit is ... added the &task=view
if I missed something .. please let me know but I spent 10 min on that till I seen it...
maybe hope to save someone else that same small pain....
-=Luvz2drv=-