getting to a view directory |
I have this in my routes
$route['default_controller'] = 'Users/login'; $route['subit_backend']['GET']='subit_backend/register'; Users is a controller. Configure is another controller. Subit_backend is another controller. I see the lower case in it. But it seems to work and I'd hate to break it. I moved public function save_userinput() into Users. So now I have the form (which is in views/Users). This Users is a subdir of views. <form name ="userinput" action="/Users/save_userinput" method="post"> This Users is a controller. This is the function I put in the Users controller public function save_userinput() { //code goes here // for example: getting the post values of the form: $form_data = $this->input->post(); // or just the username: $username = $this->input->post("username"); // then do whatever you want with it } When I run this I get in the address bar: https://www.rdsubstantiation.com/Users/save_userinput and this int he window: Not Found The requested URL /Users/save_userinput was not found on this server.
proof that an old dog can learn new tricks
|
Messages In This Thread |
getting to a view directory - by richb201 - 11-05-2018, 05:48 PM
RE: getting to a view directory - by ciadmin - 11-05-2018, 07:30 PM
RE: getting to a view directory - by richb201 - 11-06-2018, 06:25 AM
RE: getting to a view directory - by richb201 - 11-06-2018, 08:53 AM
RE: getting to a view directory - by ciadmin - 11-06-2018, 09:44 AM
RE: getting to a view directory - by InsiteFX - 11-06-2018, 10:22 AM
RE: getting to a view directory - by richb201 - 11-06-2018, 11:45 AM
RE: getting to a view directory - by richb201 - 11-08-2018, 01:48 PM
RE: getting to a view directory - by richb201 - 11-10-2018, 08:11 AM
RE: getting to a view directory - by InsiteFX - 11-22-2018, 04:59 AM
|