• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.