You are here: CodeIgniter « All PHP « IT news, forums, messages
CodeIgniter

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация