elrolito/zendamf-for-kohana — Issue #1: How can I use addDirectory
Author: leonardorcortes
Created: 2011-10-20 17:36:11+00:00
State: open

How can I use $this->server->addDirectory() instead $this->server->setClass()?

I tried:

```
public function action_index()
{
$this->server->addDirectory( APPPATH . "classes" );
}
```

in "kohana-project/application/classes/" I have "Test" class with method "say_hi"...

```
class Test
{

/**
* @return string
*/
public function say_hi()
{
return "Hi!!!";
}

}
```

Debugging $this->server I have found:

```
Zend_Amf_Server Object
(
[_methods:protected] => Array
(
)

[_classAllowed:protected] => Array
(
)

[_loader:protected] => Zend_Loader_PluginLoader Object
(
[_loadedPluginPaths:protected] => Array
(
)

[_loadedPlugins:protected] => Array
(
)

[_prefixToPaths:protected] => Array
(
[] => Array
(
[0] => /home/leonardorcortes/public_html/kohana-project/application/classes/
)

)

[_useStaticRegistry:protected] =>
)

[_production:protected] =>
[_request:protected] => Zend_Amf_Request_Http Object
(
[_rawRequest:protected] =>
[_clientType:protected] => 0
[_bodies:protected] => Array
(
)

[_headers:protected] => Array
(
)

[_objectEncoding:protected] => 0
[_inputStream:protected] =>
[_deserializer:protected] =>
[_time:protected] =>
)

[_response:protected] => Zend_Amf_Response_Http Object
(
[_objectEncoding:protected] => 0
[_bodies:protected] => Array
(
)

[_headers:protected] => Array
(
)

[_outputStream:protected] => Zend_Amf_Parse_OutputStream Object
(
[_stream:protected] =>
[_streamLength:protected] => 0
[_bigEndian:protected] =>
[_needle:protected] => 0
)

)

[_table:protected] => Array
(
)

[_session:protected] =>
[_sesionNamespace:protected] => zend_amf
[_sessionName:protected] => PHPSESSID
[_auth:protected] =>
[_acl:protected] =>
)
```