I'm trying to use WebORB for PHP.
The /weborb/ folder has been copied into my web root and I can access the console via /weborb/index.php.
I've copied my test application into /weborb/_Services/Test/Main.php. The file contents is as follows:
<?php
require_once '/home/user/www/MyClass.php';
class Main
{
public function testMethod($str)
{
return $this->MyClass->myMethod($str);
}
}
?>
The file contents of "/home/user/www/MyClass.php" is:
<?php
class MyClass
{
public function myMethod($str)
{
return $str;
}
}
$MyClass = new MyClass();
?>
When I try to pass a string via the console is just says "Channel disconnected". There's nothing being logged into the error_log either. If I replace:
return $this->MyClass->myMethod($str);
..with..
return $str;
..it works! I simply want to be able to call other instantiated classes/methods. Am I doing it right? Can anyone suggest what's going wrong? Thanks in advance.