88,190 Installs and Counting! Get Sparks Now!
Hey! Keep up to date with the project through its beta and public launch by following @getsparks.
Tweet
A Quick Looks At Sparks (EllisLab Official Post)
March 11, 2012
from: codeigniter.com
The Top Sparks of 2011
December 31, 2011
from: codefury.net
CodeIgniter Starter Project − A Starting Point for Any CI Dev
December 12, 2011
from: github.com
NetTuts+ Tutorial for GetSparks
November 24, 2011
from: net.tutsplus.com
Extensible Multi Table Scaffolding System
| Contributor | : dperrymorrow |
| : Log in to view | |
| Author Website | : http://www.newfinds.com |
| Spark Website | : http://newfinds.com/code-igniter-sparks/table-torch/ |
| Repository Type | : git |
| Number of Installs | : 883 |
php tools/spark install -v1.1.2 table_torch
Or download this version manually:
Get table_torch-1.1.2.zip
Table Torch is a custom scaffolding system that can be used for common administration tasks of tables in your CodeIgniter Application. Table Torch is different from the traditional scaffold you are used to in the fact that its customizable, and is quite extensible.

In sparks/table-torch/config/table_torch.php you will find the preferences for running your scaffold. The config file is well commented.
function torch(){
// you can do this in any method you like
// !! you would obviously need to do your authorization prior to letting the world see your Table Torch
$this->load->spark( 'table-torch/[version #]');
$this->table_torch->route();
}
You have the ability to override any action of Table Torch. To do so just add the action to the controller from which you used Table Torch and it will use your method instead, while still passing you all the data that Table Torch fetched for the page. The example below overrides edit page of the "users" table.
If you wish to load your own view for the page, specify FALSE in the third param. Or you can use the Table torch view. Either way, you will be using the template file specified in the sparks/table-torch/[ version # ]/config/table_torch.php file
// your custom view loaded
function users_edit( $data ){
// print_r( $data );
$this->table_torch->load_view( 'user/edit', $data, FALSE );
}
// the normal Table Torch view loaded
function users_edit( $data ){
// print_r( $data );
$this->table_torch->load_view( 'form', $data, TRUE );
}
You can preform additional functions before or after the Table Torch form submissions. Available callbacks are
function before_delete( $table, $primary_key ){
/*
do what you need to before deleting the row here,
you are given the table and primary key being deleted ( normally id, but whatever you set as primary key )
*/
}
function before_insert( $table, $data ){
/*
do what you need to do before inserting
You must return the data that will be inserted
*/
return $data;
}
function before_update( $table, $data ){
/*
do what you need to before updating a row
you must return the data from this method!
*/
return $data;
}
function after_insert( $table, $data ){
/*
do what you need to do after inserting
the primary key is returned in your data using insert_id();
*/
}
function after_update( $table, $data ){
/* do what you need to after updating a row */
}
php tools/spark install -v1.0.9 table_torch
Or download this version manually:
Get table_torch-v1.0.9.zip
php tools/spark install -v1.0.8 table_torch
Or download this version manually:
Get table_torch-v1.0.8.zip
php tools/spark install -v1.0.7 table_torch
Or download this version manually:
Get table_torch-v1.0.7.zip
php tools/spark install -v1.0.6 table_torch
Or download this version manually:
Get table_torch-v1.0.6.zip
php tools/spark install -v1.0.5 table_torch
Or download this version manually:
Get table_torch-v1.0.5.zip
php tools/spark install -v1.0.4 table_torch
Or download this version manually:
Get table_torch-v1.0.4.zip
php tools/spark install -v1.0.2 table_torch
Or download this version manually:
Get table_torch-v1.0.2.zip