• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some URL Help

[eluser]Phil Sturgeon[/eluser]
Hey gang,

Trying to get some real simply URL processing for a project im on. I have never got on shockingly well with regex or mod_rewriting subdomain urls, so how can I force the folllowing links to some CI controllers? I understand there will be a mix of routes and mod_rewrite but im struggling on them both.




I need to somehow turn the names into userID and groupID but im thinking I can just add an extra method to a controller like:

function group_from_name($group_name)
$groupID = $this->group_model->getIDfromName($group_name);

function profile($groupID)
bla bla normal group profile code...

Been pondering this one for a while!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.