Hi,
I was looking into CodeIgniter, and encountered the following problem:
In codeigniter, you could create a new controller like this:
---
class People extends Controller {
function index() { ... }
function profile() { ... }
}
---
Then I could call for example the URL
http://www.example.com/people/profil...yvandermaesen/ and the
profile() function would be executed, where I can use the userid passed
in the last URL segment to look up personal data.
However, I prefer working the other way around, and call the URL
http://www.example.com/people/gerryv...aesen/profile/. How could I
manage this?
I was looking into CodeIgniter, and encountered the following problem:
In codeigniter, you could create a new controller like this:
---
class People extends Controller {
function index() { ... }
function profile() { ... }
}
---
Then I could call for example the URL
http://www.example.com/people/profil...yvandermaesen/ and the
profile() function would be executed, where I can use the userid passed
in the last URL segment to look up personal data.
However, I prefer working the other way around, and call the URL
http://www.example.com/people/gerryv...aesen/profile/. How could I
manage this?
Comment