From: Marco F. <ma...@sa...> - 2007-04-30 09:41:09
|
Hi there, How I meantioned before I wanna use my own model classes extended by the Zend-framework. I thought it would be practable if I create a new instance inside the amfphp-service-classes so I could pass the requestobject to the Zend-model ... and so on. But I get bugged :( Exactly at this point I create my model-class, the service isn't be reachable anymore :( I tried make a service call directy in the gateway.php so I can call it by browser (for debugging). this worked fine, the model did his job. here's a little snippet from one of my service classes. If I uncomment the two lines the service wont be reachable. The shoutsModel is set to classpath and the test-function to method-table. ... public function say($message) { $message = $this->test($message); return 'this was the message : ' . $message; } public function test ($message) { //$shoutsModel = new ShoutsModel(); //$message = $shoutsModel->test($message); return "_!_!_!_!".$message; } ... It would be so great if someone could help me. I am really desperate at the moment. Amfphp <-> ZendModel is basicly part I for my examination-work and I don't wanna fail :( best regards, marco |