Kyle Boddy Entrepreneur, Hacker, Biomechanics Researcher, Baseball Lover.

14Feb/110

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
class edit extends Controller {

     function edit()
     {
          parent::Controller();
          $this->load->scaffolding('tableName');
     }
}

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

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.