Hi all,
more routing questions, as I (and others I'm sure) learn to get used
to this framework.

If I have a basic social site, where
/username/
/username/friends/
/username/tags/
and such go to a users' profile, friends and tags pages...

and also
/countryname/
/countryname/cities/
/countryname/...
where these pages show information about a country...

then how would you set up the directory structure for modules,
controllers and such?

If I understand it correctly, a good approach would be:

/application/controllers/users/IndexController.php
/application/controllers/users/FriendsController.php
/application/controllers/users/TagsController.php
and
/application/controllers/countries/IndexController.php
/application/controllers/countries/CitiesController.php

I know the /username/ or /countryname/ setup is a bit unusual, more
common would be to have /username/ and /country/countryname/

Also thoughts on the setup of .htaccess welcome!

Peter
--
blog: http://poorbuthappy.com/ease/
work: http://petervandijck.net
US: (+1) 201 467-5511
Belgium: (+32) 03/325 88 70
Skype id: peterkevandijck

Reply via email to