Welcome Guest, Not a member yet? Register   Sign In
Scaffolding Troubles
#4

[eluser]Phil Sturgeon[/eluser]
If it is a controller then you shouldnt be using a method to call it. You are meant to put the scaffolding command into the controllers constructor as shown in the user guide.

Eg:

Code:
<?php
class Blog extends Controller {

       function Blog()
       {
            parent::Controller();

            $this->load->scaffolding('table_name');
       }
}
?>

Then call is as /blog/scaff_trig.

This is of course very annoying as it does limit your use of the scaffolding, but I preffer to just make one scaffolding file then change the table name around now and then.


Messages In This Thread
Scaffolding Troubles - by El Forum - 07-12-2007, 06:13 PM
Scaffolding Troubles - by El Forum - 07-12-2007, 08:23 PM
Scaffolding Troubles - by El Forum - 07-12-2007, 09:35 PM
Scaffolding Troubles - by El Forum - 07-13-2007, 04:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB