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.
from CodeIgniter's user guide
Scaffolding has been deprecated from CodeIgniter as of 1.6.0.
PHPMyAdmin is your friend. :)
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.
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 :)
The create a blog in 20 minutes tutorial is base on a much older version of CI - the current version won't work with the video tutorial on multiple fronts - don't waste your time.
I just went to reading the user guide, it's pretty straight forward and gave me enough to get started.