anotherJEK
02-27-2012, 08:18 PM
This is the error;
Fatal error: Call to protected method _VIEW::getJs() from context '' in WC_new/new.php on line 8;
following is the code
require_once('WC_php/pixViewerApp.php');
//$_NEWOBJ = new _VIEW('new');
$_NEW = new _PIX_VIEWER('new'); // _PIX_VIEWER is a subclass of _VIEW
$_NEW_SRCSCRIPT = $_NEW->getJs(); // <<< line causing error
///$_NEW_SRCSCRIPT = $_NEWOBJ->getJs(); gives the same error
I don't under stand the meaning of 'context' in this context.
further info:
This code is in a file which is required by another file.
Original file -> requires this file;
I have tried to hunt this down in my reference material but have not
found a clue.
Thanks for time and attention
JK
Fatal error: Call to protected method _VIEW::getJs() from context '' in WC_new/new.php on line 8;
following is the code
require_once('WC_php/pixViewerApp.php');
//$_NEWOBJ = new _VIEW('new');
$_NEW = new _PIX_VIEWER('new'); // _PIX_VIEWER is a subclass of _VIEW
$_NEW_SRCSCRIPT = $_NEW->getJs(); // <<< line causing error
///$_NEW_SRCSCRIPT = $_NEWOBJ->getJs(); gives the same error
I don't under stand the meaning of 'context' in this context.
further info:
This code is in a file which is required by another file.
Original file -> requires this file;
I have tried to hunt this down in my reference material but have not
found a clue.
Thanks for time and attention
JK