Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter's Scaffolding not working
#1

[eluser]01010011[/eluser]
Hi,
I keep getting a 404 Page Not Found whenever I try to access CodeIgniter's Scaffolding page in my browser, like so:

Quote:localhost/codeignitor/index.php/blog/scaffolding/mysecretword

I can access

Quote:localhost/codeignitor/index.php/blog
just fine. I followed CodeIgnitor's instructions in their "Create a blog in 20 minutes" by storing my database settings in the database.php file; and automatically connecting to the database by inserting "database" in the core array of the autoload.php; and I've added both

Code:
parent::Controller();
and
Code:
$this->load->scaffolding('myTableName')
to blog's constructor. It still gives me this 404.

Any suggestions?

**EDIT**
After doing somemore research after posting this, I discovered that Scaffolding has been deprecated as of 1.6.0
#2

[eluser]Zack Kitzmiller[/eluser]
Scaffolding was depreciated, but it still -works- in 1.7.2

First, you need to set a scaffolding trigger in your routes. Then you set the table name in the constructor of a controller using $this->->load->scaffolding('table_in_database');

the url you'd surf to would be localhost/codeigniter/index.php/blog/TRIGGER
#3

[eluser]01010011[/eluser]
@techneke and @zack, you were right, I did not need to put scaffolding in the url. It worked. Thanks




Theme © iAndrew 2016 - Forum software by © MyBB