i have defined global variable inside controller but i am assign value inside index() function. value accessible inside index() but not inside about and other functions. how can i do it ??
class Manage_business extends CI_Controller
{
var $id;
public function __construct()
{
parent::__construct();
}
public function index($no)
{
$this->id=$no;
echo $this->id;
}
public function about()
{
echo $this->id;
die();
}
}