PROBLEM You have a GCM class which includes a send_notification function. In a different class, Demand.php, we trying to use the send_notification function. So we have a constructor in Demand.php which points to GCM class: This…
Call to a member function prepare() on a non-object in (Fatal error)
1 Article
1