Created
May 7, 2012 14:01
-
-
Save Nickstr/2627949 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() | |
{ | |
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
<?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