Scaffolding in CodeIgniter: Controller Code

Now that scaffolding has finally been removed from CodeIgniter, they’ve removed all references to it. However, I still use this function for clients, and as a result, stick with the 1.7.3 branch for now. If you’re in the same situation and need the simple controller code, here it is:

[php]

<?php
class edit extends Controller {

function edit()
{
parent::Controller();
$this->load->scaffolding(‘tableName’);
}
}
[/php]

Be sure to properly set your database configuration connections (database.php) and scaffolding trigger (routes.php) to make this work.

Leave a Reply

Your email address will not be published. Required fields are marked *