Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Medalink/2627960 to your computer and use it in GitHub Desktop.
Save Medalink/2627960 to your computer and use it in GitHub Desktop.
<?php
class Crud_Base_Controller extends Base_Controller {
// Yes, i want restfull, god yesssss
public $restful = true;
public function __construct()
{
// This is required in order to bring in functionality from laravel.
parent::__construct();
echo 'test';
}
// Home controller
public function get_index()
{
echo 'test';
}
}
return array(
'crud' => array('location' => 'crud',
'handles' => 'crud',
'auto' => true
),
);
// This is needed to register the routes for your crud bundle.
Route::controller(Controller::detect('crud'));
<?php
Autoloader::map(array(
'Crud_Base_Controller' => path('app').'controllers/base.php',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment