When I tried to create my own library with using database queries, I've got an error that I couldn't use a connection to the database.
Code: Select all
Notice: Undefined property: ShippingDelivery::$db in J:\home\techno\www\system\library\shippingDelivery.php on line 44
Fatal error: Call to a member function query() on a non-object in J:\home\techno\www\system\library\shippingDelivery.php on line 44
Code: Select all
$mylibr = new ShippingDelivery();
$registry->set('mylibrary', $mylibr); // +