I wonder, whether we should have a special naming for them.
bantu recognized that naming them functions_ is kind of wrong, as most of them don't have normal functions at all.



$cron_task = phpbb_load_class('cron/task/some_task');
imkingdavid wrote:@ evil: I have created a class loader method, which I have used in a couple of different projects, and which could be adapted for this situation if needed. Of course if there is a better way of doing this, that's fine, but I figured I'd provide my way so that it didn't have to be done from scratch later on.
$class_file = $phpbb_root_path . 'includes/' . $class . '.' . $phpEx;eviL3 wrote:imkingdavid wrote:@ evil: I have created a class loader method, which I have used in a couple of different projects, and which could be adapted for this situation if needed. Of course if there is a better way of doing this, that's fine, but I figured I'd provide my way so that it didn't have to be done from scratch later on.
That's the basic idea. But this:
- Code: Select all
$class_file = $phpbb_root_path . 'includes/' . $class . '.' . $phpEx;
will not be able to load very many classes.


Users browsing this forum: kasimi and 13 guests