"
Warning: Invalid argument supplied for foreach() in C:\wamp64\www\perfor-opencart\system\engine\loader.php on line 83
"
my controller is :
Code: Select all
class ControllerExtensionModuleFetchddatasmarterp extends Controller {
private $error = array(); // This is used to set the errors, if any.
public function index()
{ // Default function
$this->language->load('module/fetchdatasmarterp'); // Loading the language file of helloworld
//$this->document->setTitle($this->language->get('heading_title')); // Set the title of the page to the heading title in the Language file i.e., Hello World
$this->load->model('setting/setting'); // Load the Setting Model (All of the OpenCart Module & General Settings are saved using this Model )
$this->load->model('module/fetchdatasmarterp');
}
}
plz help me I need to create an extension that will get API JSON file that contains products info then insert them to DB just these small process and show my extension page in the dashboard menu so I can open it later easily from the dashboard