@@ -37,6 +37,5 @@ Autoloader::psr(array(
*/
Autoloader::map(array(
- //'User' => path('app').'models/user.php',
- //'Role' => path('app').'models/role.php',
+ 'Base_Controller' => path('app').'controllers/base.php',
));
@@ -0,0 +1,17 @@
+<?php
+
+class Base_Controller extends Controller {
+ /**
+ * Catch-all method for requests that can't be matched.
+ *
+ * @param string $method
+ * @param array $parameters
+ * @return Response
+ */
+ public function __call($method, $parameters)
+ {
+ return Response::error('404');
+ }
+}
@@ -1,6 +1,6 @@
<?php
-class Home_Controller extends Controller {
+class Home_Controller extends Base_Controller {
/*
|--------------------------------------------------------------------------