Tuesday, 6 August 2013

Horde Autoloader - How to use?

Horde Autoloader - How to use?

I am new to autoloading in PHP and have a requirement for Horde_Text_Diff
in my latest project. I am using Horde_Autoloader to autoload the required
files, however, I am not using it correctly. As far as I can Google, there
is not a single example of how to actually do it that exists on the
internet. I pretty much learn 100% from example and so I have hit a
roadblock here.
This is what I have so far ...
require_once( Horder/Autoloader.php );
$autoloader = new Horde_Autoloader();
No problem so far, the object is created ...
$text_diff = $autoloader->loadClass( 'Hoard_Text_Diff' );
This is not working as I am purely guessing here.
What lead me to where I am was this post.

No comments:

Post a Comment