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

#1
[eluser]Rahi[/eluser]
Hello,

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:

Code:
class Insert_Data extends Controller {
    
    public function __construct(){

        parent::__construct();
        $this->load->database("database");
        $this->load->scaffolding("activities");

    }

}

URL's

When insert script was inside of folder
http://localhost/project/data_mining/insert_data

When insert script was at root controller folder
http://localhost/project/insert_data

Thanks in advance for your help.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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