Welcome Guest, Not a member yet? Register   Sign In
Beginner question
#2

[eluser]Clooner[/eluser]
Go into the routes.php file in your application/config dir

add this line!

Code:
$route['/photos/(:any)/(:num)'] = 'photos_controller/myphotofunc/$1,$2';

in your photos_controller create the function like
Code:
function myphotofun($username, $photo_id)
{
  // do whatever you want to with the username and photoid variables :P

}


Messages In This Thread
Beginner question - by El Forum - 06-22-2010, 06:35 AM
Beginner question - by El Forum - 06-22-2010, 06:39 AM
Beginner question - by El Forum - 06-22-2010, 07:04 AM
Beginner question - by El Forum - 06-22-2010, 07:13 AM
Beginner question - by El Forum - 06-22-2010, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB