• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Implemented Update autoloader to support namespaces

Robbo

Well-known member
#1
All that needs to happen is this in the autoloader...

Code:
	public function autoloaderClassToFile($class)
	{
		if (preg_match('#[^a-zA-Z0-9_\\\]#', $class))
		{echo $class;
			return false;
		}

		return $this->_rootDir . '/' . str_replace(array('\\', '_'), '/', $class) . '.php';
	}
I am overwriting this currently but would rather not be...