View Single Post
Old 05-09-2009, 10:05 PM   #13 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Well, that is because first of all, your Loader class does not have a function called loadClass. Secondly, in order to use Loader::loadClass you must either;

1. Declare the function loadClass as static like so:
PHP Code:
public static function loadClass($classToLoad
2. Have the Loader class instanced somewhere before you call the function, which will allow you to call Loader:loadClass without having the loadClass function as static.

Also, your pagination class should not rely on Database in order to paginate.
__________________
Tanax is offline  
Reply With Quote