Welcome Guest, Not a member yet? Register   Sign In
More than two parameters
#1

Hi, people!!

In first place, excuse me for my english (i'm from Colombia).
I'm a PHP developer but is my first experience with Codeigniter (i love it!). I need pass three parameters in a rute like this:

https://mydomain.com/myapp/Controller/fu...am2/param3

With two parameters is all perfect but is not working with three. ¿Is not possible? ¿suggestions?

Thanks!!
Reply
#2

You need to setup a route for it in the ./application/config/routes.php file,
something like this just an Example:

PHP Code:
$route['login/(.+)'] = 'auth/login/$1'

For more see the CodeIgniter Users Manual on URI Routing.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

You can also use this from the CodeIgniter Users Guide - URI Class.

PHP Code:
$this->uri->segment(20); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB