guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
So I'm struggling here a bit. Bare with me.
This lives in file awesome.php
I have another file, Autoloader.php:
Within this class there's a "register" and "autoload" function which basically will load anything with the namespace that begins with AcidRaZor automatically.
However, I get Class 'Autoloader' not found when I try this:
WHY.
Driving me crazy. Not that I wasn't crazy. BUT I NEED TO GET THIS RIGHT. It's keeping me up at night. Need to use namespaces it looks awesome...
PHP:
namespace AcidRaZor\Funky;
class WhatUP{
}
This lives in file awesome.php
I have another file, Autoloader.php:
PHP:
namespace AcidRaZor\Funky;
class Autoloader {
}
Within this class there's a "register" and "autoload" function which basically will load anything with the namespace that begins with AcidRaZor automatically.
However, I get Class 'Autoloader' not found when I try this:
PHP:
require_once 'Autoloader.php';
Autoloader::register();
WHY.
Driving me crazy. Not that I wasn't crazy. BUT I NEED TO GET THIS RIGHT. It's keeping me up at night. Need to use namespaces it looks awesome...