• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scaffolding script inside a folder


I just experienced a problem with scaffolding I don't know if it a bug or is it just me. I created a folder inside controller and within that folder I created a controller class to perform scaffolding. I provided secret word and then I accessed it through browser. All right scaffolding interface loaded no problem but when I tried to click any link it gives me 404 error. I checked my base_url in config file it was fine with trailing slash. The table I was referencing did have primary key but it won't work. After doing a lot of changes when I cannot get it working I moved file to root controller folder and it started working.

Anyone of you having idea what was wrong with it.

Below is simple controller class which I am using:

class Insert_Data extends Controller {
    public function __construct(){





When insert script was inside of folder

When insert script was at root controller folder

Thanks in advance for your help.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.