Welcome Guest, Not a member yet? Register   Sign In
Encrypt Problem
#2

[eluser]toopay[/eluser]
Use _remap. Suppose the first segment is a key, and the second is the message, you can do...
Code:
class Confirmation extends CI_Controller {
    
    public function _remap($method, $params = array())
    {
        if(count($params) == 1)
        {
            $res = $this->encrypt->decode($params[0], $method);
            // Do something...
            //...
            // Give the redirect as a result
            redirect(($success == TRUE) ? 'success_controller' : 'failed_controller');
        }
        // If the parameter is empty or not match, throw 404 error
        show_404();
    }
}


Messages In This Thread
Encrypt Problem - by El Forum - 07-04-2011, 06:34 AM
Encrypt Problem - by El Forum - 07-04-2011, 03:52 PM
Encrypt Problem - by El Forum - 07-04-2011, 11:15 PM
Encrypt Problem - by El Forum - 07-05-2011, 12:36 AM
Encrypt Problem - by El Forum - 07-05-2011, 01:55 AM
Encrypt Problem - by El Forum - 07-05-2011, 07:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB