Yes, that works... So why won't my class work? //class <?php
class Quadri { /* * Constructor */ function Quadri() { include("Quadri.methodTable.php"); } /** * This function adds the score & name to the database * @access remote */ function insertIntoDatabase($p_score, $p_name) { return "test5"; } /* * This function checks and decrypts the given code from flash * @access remote */ function addScore($p_score, $p_name) { $test = $this->insertIntoDatabase("test", "test"); return "HelloWorld!"; } } ?> //method table <?php $this->methodTable = array( "insertIntoDatabase" => array( "description" => "This function adds the score & name to the database", "arguments" => array("p_score", "p_name"), "access" => "remote" ), "addScore" => array( "description" => "/\n This function checks and decrypts the given code from flash", "arguments" => array("p_score", "p_name"), "access" => "remote" ) ); ?> Mike Britton wrote: > <?php > > class testClass > { > function testClass() { > $this->methodTable = array( > "test1" => array( > "description"=>"I return 'hello world'", > "access"=>"remote", > "arguments"=>array(), > "returntype"=>"string"), > > "test2" => array( > "description"=>"I return 'hello'", > "access"=>"remote", > "arguments"=>array(), > "returntype"=>"string") > ); > } > > function test1() { > return $this->test2()." world"; > } > > function test2() { > return "hello"; > } > } > > ?> > > <html> > <head><title></title></head> > <body> > <?php > > include('testClass.php'); > > $myTest = new testClass(); > $message = $myTest->test1(); > echo $message; > > > > ?> > </body> > </html> > > > > > Mike > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com