| 
	
 | 
 Posted by Gerry Vandermaesen on 10/09/06 16:09 
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/profile/gerryvandermaesen/ 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/gerryvandermaesen/profile/. How could I 
manage this?
 
  
Navigation:
[Reply to this message] 
 |