I am having some problems trying to pass a variable in my routes.
I have my standard index($type = null) function for pagination.
I want to pass "open" or "closed" as the $type so the user can view all open cases or closed cases if they wish. The $type variable just gets passed inside the function to determine which records to pull or all if null
so the url would be
tickets/ or
tickets/open or
tickets/closed
Any ideas?
Thanks
Dave
No comments:
Post a Comment