Table |
[eluser]davy_yg[/eluser]
Hello all, I am trying to create table. Here is the code that I type: controllers/tables.php Code: <?php views/table.php Code: <html> I point my url to: http://localhost/News/index.php/table/ 404 Page Not Found The page you requested was not found. Why is it?
[eluser]PravinS[/eluser]
your controller name is "Tables", so you URL should be http://localhost/News/index.php/tables/ you missed "s"
[eluser]noideawhattotypehere[/eluser]
not only tables, but tables/create_table @davy, remember, its base_url/[optional, depends on htaccess]index.php/controller/method, you dont need to call method by name if you want to call method called 'index'.
[eluser]davy_yg[/eluser]
I try : http://localhost/News/index.php/tables/create_table and http://localhost/News/index.php/tables/ both of them show me this error: 404 Page Not Found The page you requested was not found.
[eluser]PravinS[/eluser]
is there any view, library, helper which is loaded in your controller but physically missing from that give path
[eluser]davy_yg[/eluser]
views/table.php does exist. I don't know about the files in libraries & helpers since I unable to view (see) them directly in the folder. They are invisible, I only see the index file.
[eluser]davy_yg[/eluser]
controllers/tables.php Code: <?php
[eluser]PravinS[/eluser]
you have loaded library "table" and view "table", one of them is not present physically, so you are getting "404 Page Not Found" error, Code: $this->load->library('table');
[eluser]davy_yg[/eluser]
I can see these files: Code: News/system/libraries/Table.php What should I do? |
Welcome Guest, Not a member yet? Register Sign In |