re com_hello2 Topic is solved

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
luvz2drv

re com_hello2

Post by luvz2drv » Fri Aug 17, 2007 4:59 pm

using this link

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=-

User avatar
tjay
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Thu Aug 18, 2005 1:50 am
Location: New Orleans
Contact:

Re: re com_hello2

Post by tjay » Wed Aug 22, 2007 1:08 pm

I guess we will need the author to update thanks for reporting it.
This day it is my wish that I helped you to live


Post Reply