tags:

views:

270

answers:

4

Hi, I keep getting a 404 Page Not Found whenever I try to access CodeIgniter's Scaffolding page in my browser, like so: localhost/codeignitor/index.php/blog/scaffolding/mysecretword

I can access 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 parent::Controller(); and $this->load->scaffolding('myTableName') to blog's constructor. It still gives me this 404.

Any suggestions?

+2  A: 

from CodeIgniter's user guide

Scaffolding has been deprecated from CodeIgniter as of 1.6.0.

solefald
Yeah, thanks. I wasted enough time trying to figure out what I was doing wrong.
01010011
+1  A: 

PHPMyAdmin is your friend. :)

Tilo Mitra
+1 Thanks for the reply. I like the command line because it helps me remember the commands. However, if you type something wrong, you MAY have to type over the whole thing
01010011
+1  A: 

The "Create a blog in 20 minutes" tutorial missed one point.

If you check the config.php script, you'll find the following line:

$config['base_url'] = "http://example.com/";

I put CodeIgniter 1.7.2 to the "htdocs/ci" folder of XAMPP, so I changed this line like this:

$config['base_url'] = "http://localhost/ci/";

If you put it to your remote web site, you may change the line like this:

$config['base_url'] = "http://your_site.com/";

That's all. Hope it helps.

boxoft
+1 Thanks for your reply boxoft. Yeah, I can't seem to remember whether CI mentioned that, however I already set the base url. Regarding the scaffolding feature, I just wanted to learn how to populate my database using CI's scaffolding. I know I could just u
01010011
+1  A: 

i had the very same problem, so i fixed my base_url to this $config['base_url'] = "http://localhost/CodeIgniter/index.php"; and now it works like a charm. hope this helps someone in future :)

saadlulu
+1, thanks, I'll try it
01010011