I got a conroller like:
class listItems extends CI_Controller{
private $num;
public class __construct(){
parent::__construct();
$this->num=10;
}
public class index(){
echo $this->num;
}
}
when i do this i got nothing. why?
Two different classes. Needs to be under the same, so use
functioninstead.