Commit 97fb28bd authored by Taylor Otwell's avatar Taylor Otwell

added base controller default setup.

parent 6ed4adf6
...@@ -37,6 +37,5 @@ Autoloader::psr(array( ...@@ -37,6 +37,5 @@ Autoloader::psr(array(
*/ */
Autoloader::map(array( Autoloader::map(array(
//'User' => path('app').'models/user.php', 'Base_Controller' => path('app').'controllers/base.php',
//'Role' => path('app').'models/role.php',
)); ));
\ No newline at end of file
<?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');
}
}
\ No newline at end of file
<?php <?php
class Home_Controller extends Controller { class Home_Controller extends Base_Controller {
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment