-
-
Save Medalink/2627960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return array( | |
'crud' => array('location' => 'crud', | |
'handles' => 'crud', | |
'auto' => true | |
), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is needed to register the routes for your crud bundle. | |
Route::controller(Controller::detect('crud')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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