Welcome Guest, Not a member yet? Register   Sign In
Custom Routes with Account Verify Controller
#5

[eluser]CroNiX[/eluser]
Maybe try this (in this order):
Code:
$route['activate/(:num)/(:any)'] = "activate/index/$1/$2";
$route['activate/(:num)'] = "activate/index/$1";
$route['activate'] = "activate";

First line of your index() method:
Code:
if (is_null($param1) OR is_null($param2))  //if either is still null, error out
{
  $this->load->view('error_view');
}
else
{
  //rest...
}


Messages In This Thread
Custom Routes with Account Verify Controller - by El Forum - 02-08-2012, 02:37 PM
Custom Routes with Account Verify Controller - by El Forum - 02-08-2012, 02:50 PM
Custom Routes with Account Verify Controller - by El Forum - 02-08-2012, 03:09 PM
Custom Routes with Account Verify Controller - by El Forum - 02-09-2012, 02:59 PM
Custom Routes with Account Verify Controller - by El Forum - 02-09-2012, 03:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB