I have been creating a component that will manage some data on my amazon webservice and I would like to use the amazon library on working with it but I have been encountering an error here is the error:
Fatal error: Class 'JView' not found in C:\xampp\htdocs\joomla1\administrator\components\com_amazon\views\amazon\view.html.php on line 8
here the code coming from the view:
jimport('joomla.application.component.view');
class AmazonViewAmazon extends JView{
function display()
{
$this->setLayout('table_layout');
parent::display();
}
}
It's weird cause the error will only happen when I require the sdk library from the amazon package here is the controller code I have:
jimport('joomla.application.component.controller');
class AmazonController extends JController
{
function display()
{
require_once(JPATH_COMPONENT.DS.'lib'.DS.'amazon'.DS.'sdk.class.php');
parent::display();
}
}
If I try to comment out the require_once statement from the code above the component will load successfully, is there anyone who is able to encounter the same problem I'm encountering or anyone who has knowledge about how to resolve it? any answer is highly appreciated. :)