Why can’t we assign properties in Codeigniters construct?

Why can’t we assign properties in Codeigniters construct?

PHP Code:

public function __construct()
        {
            parent::__construct();
            $this->login_library->is_logged();
            $this->data[’timezones’] = DateTimeZone::listIdentifiers(DateTimeZone::ALL);
        } 

Can’t access […]

Original post by English Breakfast Tea

Leave a Reply