Created
December 24, 2010 11:44
-
-
Save lukemorton/754132 to your computer and use it in GitHub Desktop.
Based on the Rails'esque 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 defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* CRUDDDDD | |
*/ | |
class Controller_Crud extends Controller { | |
/** | |
* Show a list of items | |
* | |
* @return void | |
*/ | |
public function action_index() | |
{ | |
} | |
/** | |
* Show one particular item | |
* | |
* @return void | |
*/ | |
public function action_read($id) | |
{ | |
} | |
/** | |
* Form for adding an item | |
* | |
* @return void | |
*/ | |
public function action_add() | |
{ | |
} | |
/** | |
* Create an item | |
* | |
* @return void | |
*/ | |
public function action_create() | |
{ | |
} | |
/** | |
* Form for editing an item | |
* | |
* @return void | |
*/ | |
public function action_edit($id) | |
{ | |
} | |
/** | |
* Update the item | |
* | |
* @return void | |
*/ | |
public function action_update() | |
{ | |
} | |
/** | |
* Delete the item | |
* | |
* @return void | |
*/ | |
public function action_delete($id) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment