Page 1 of 1

re com_hello2

Posted: Fri Aug 17, 2007 4:59 pm
by luvz2drv
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=-

Re: re com_hello2

Posted: Wed Aug 22, 2007 1:08 pm
by tjay
I guess we will need the author to update thanks for reporting it.