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 <a href="http://www.hubi.pl">http://www.hubi.pl</a>
* @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="http://.site_urlmanager/SECRETPASSWORD./.$row0">.'"]'.$row[0].'</a>
';
}
}
}
?>Code is very simple (probably not perfect), but feel free to ask 😉