Welcome Guest, Not a member yet? Register   Sign In
Can't pass object to library __construct()
#1

[eluser]Lâm Tế[/eluser]
Hi there,

When I load library I got this error:
Code:
A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Product::__construct(), called in D:\www\system\libraries\Loader.php on line 928 and defined

Filename: libraries/product.php

Line Number: 16
$category is an object
Code:
$this->load->library('Product', $category)

Thanks for your helping.
#2

[eluser]danmontgomery[/eluser]
Loader specifically checks for an array, otherwise it's ignored.




Theme © iAndrew 2016 - Forum software by © MyBB