topical media & game development

talk show tell print

professional-php-01-testwidget.php / php



  <?php
  
  require_once('class.Widget.php');
  
    try {
      objWidget = new Widget(1);
    
      print "Widget Name: " . objWidget->getName() . "<br>\n";
      print "Widget Description: " . objWidget->getDescription() . "<br>\n";
  
      objWidget->setName('Bar');
      objWidget->setDescription('This is a bartacular widget!');
    } catch (Exception e) {
        die("There was a problem: " . e->getMessage());
    }
  
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.