Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Problem with routing from a method to another controller
#2

(This post was last modified: 12-13-2014, 07:08 AM by InsiteFX.)

The route (:any) needs to be the last route in your routes file, any routes after that will not work because it is a catch all route.

Code:
redirect('movies/add');

    // for update / edit
    redirect('movies/add/'.$id);

To update etc; You need to also pass the id of the record to the method.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Problem with routing from a method to another controller - by InsiteFX - 12-13-2014, 07:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB