私は次のようなコントローラーを手に入れました:
class listItems extends CI_Controller{
private $num;
public class __construct(){
parent::__construct();
$this->num=10;
}
public class index(){
echo $this->num;
}
}
私がこれをするとき、私は何も得ません。なぜ?