Implemented Update autoloader to support namespaces

Robbo

Well-known member
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...
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Back
Top Bottom