I’ve got three files, a.php, b.php and c.php.
a.php:require b.php
b.php: require c.php
Can I use features from c.php in a.php? It’s not working for me, but I think I’m doing something wrong. W3 Schools, tiztag, etc aren’t helpful.
Real code:
default.php:
require_once(JPATH_COMPONENT.DS.'controllers'.DS.'easyblog.php');
/controllers/easyblog.php:
include JPATH_COMPONENT.DS.'helpers'.DS.'easyblog.php'
/helpers/easyblog.php
function getDefault()
I get the following error when I try to run this:
Fatal error: Call to undefined method xmlrpcHelper::getDefault() in /helpers/easyblog.php on line 43
(addendum: Could using require_once or includes mess this up?)
From the manual:
“It’s not working for me” is not an error message – perhaps if you explained in more details what you were doing and why you thought it had failed you might get a more specific response as to why.