Browse Source

fix bug in controller auto-loading.

Taylor Otwell 12 years ago
parent
commit
3789972a35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/autoloader.php

+ 1 - 1
laravel/autoloader.php

@@ -130,7 +130,7 @@ class Autoloader {
 	 */
 	protected static function controller($class)
 	{
-		$controller = str_replace(array('_', '_Controller'), array('/', ''), $class);
+		$controller = str_replace(array('_Controller', '_'), array('', '/'), $class);
 
 		return CONTROLLER_PATH.strtolower($controller).EXT;
 	}