Scaffolding script inside a folder |
[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 { 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. |
Welcome Guest, Not a member yet? Register Sign In |