Welcome Guest, Not a member yet? Register   Sign In
Segment/passing to method problem
#1

[eluser]rossmurphy[/eluser]
I have a method in a controller like this:

Code:
function index($additionalData = array ()) {

}

I need to be able to pass

Code:
roomId=34

But i have to do it using

Code:
$this->uri->segment(4)

Which is fine. BUT, when i try and pass this

Code:
example.com/controller/index/34

It tries to pass it into the function, and creates an error because i use this internally to pass arrays... is there another way of doing this?

Thanks.


Messages In This Thread
Segment/passing to method problem - by El Forum - 08-05-2009, 11:19 AM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:03 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:32 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:47 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:59 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 07:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB