News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stubbles Blog:
Loading classes from the XP-Framework
April 09, 2007 @ 12:22:00

On the Stubbles blog, there's a new post that describes how to load in classes from the XP-Framework into the Stubbles framework.

The following little example uses a so called foreign class loader that is responsible for a given namespace, in this case net.xp_framework. This class loader is registered within the default Stubbles class loader. After that, all classes that reside in the namespace where the foreign class loader is responsible for will be loaded via this class loader.

The method they use is simple - seven lines of code simple. It loads in the class file using the load() functionality of the Stubbles framework making it so it can be called natively after creating an object for it.

0 comments voice your opinion now!
xpframework load class module native object xpframework load class module native object


blog comments powered by Disqus

Similar Posts

Stubbles Blog: Lazy loading of classes stored in a session without __autoload()

SitePoint PHP Blog: Hot PHP UTF-8 tips

Ilia Alshanetsky\'s Blog: PHP 5.1.1 Released! (and a Rant)

Kevin Schroeder's Blog: Passing typed ActionScript objects to Flex using PHP and a message queue

Community Crosstalk: Matthew O'Phinney & Scott Johnson on Dynamic Function/Method Calls


Community Events

Don't see your event here?
Let us know!


laravel5 install api community series voicesoftheelephpant podcast language php7 unittest extension introduction framework library interview release xdebug laravel example opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework