Welcome Guest, Not a member yet? Register   Sign In
URI segments don't work
#1

[eluser]Cgull[/eluser]
Hello,

I have a site called: orders.

In the controllers folder I have a sub folder called: manage.

In there I have a controller called: editOrder

In one of my forms I have a link to: editOrder/1

In my route file I have this code:

Code:
$route['editOrder'] = 'manage/editOrder';

The link gives the error page not found.

I tried to go to the page manually, like this:
Code:
http://localhost/orders/editOrder/1

Page not found

I tried this way:

In my route file:

Code:
$route['editOrder/(:num)'] = "manage/editOrder/$1";

Going to the page manually: Page not found


I have changed my config file to:

Code:
$config['uri_protocol'] = 'PATH_INFO';
$config['enable_query_strings'] = TRUE;

And tried this way:

Code:
http://localhost/orders/?c=editOrder&m=index&id=1
That takes me to the home page of the application.

How can I pass the id segment to the editOrder controller?????

Ahhhhhhhhhh

How would I call this controller????




Theme © iAndrew 2016 - Forum software by © MyBB