Hello,
I have a great deal of hope, that it help although one of You to manage all tables in Scaffolding easier and faster. I have written it for my projects and use it still as well, bacause you can access any table much quicker than manual edit table name in controller.
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package Scaffolding Manager Helper
* @author Hubert Bernaciak
* @copyright Copyright (c) 2007, Hubert Bernaciak.
* @link http://www.hubi.pl
* @since Version 1.0
*
*/
// ------------------------------------------------------------------------
class Manager extends Controller {
function Manager()
{
parent::Controller();
if(!$this->uri->segment(3) == '')
{
$this->load->scaffolding($this->uri->segment(3));
}
}
function index()
{
$result = mysql_list_tables('homelab');
while ($row = mysql_fetch_row($result))
{
echo '<a href="'.site_url('manager/SECRETPASSWORD').'/'.$row[0].'">'.$row[0].'</a><br />';
}
}
}
?>
Code is very simple (probably not perfect), but feel free to ask ![]()
