I used the below code in my local wamp
server and everything is perfect.
$this->encryption->encode($result['wo_id']);
But the same code is showing error when uploading to the web server online. Why?
Since PHP version of my server was old. I enabled PHP extension php_mcrypt from
WAMP icon -> PHP ->PHP extensions -> php_mcrypt
Now it works fine.