hi
i am new to codigniter...
i fetch records from db and want to access it in another functio in same class but it giving me error.. any idea...
class Usercp_Task extends CI_Controller {
var $cate=array();
public function index() {
$this->getCategoryDetails();
}
public fun getCategoryDetails()
{
$array_db=result form database...
$this->$cate=$array_db;
}
public fun showcategory()
{
print_r($cate);
}
thanx