1

You need to specify the namespace before you use them, so for your examples above: use \Joomla\CMS\Language\Text; use \Joomla\CMS\MVC\Controller\BaseController; class YourClass extends BaseController { echo Text::_('YOUR_CONSTANT'); } Otherwise, you can do it like this, which is going to get tedious pretty quick: class YourClass extends \Joomla\CMS\MVC\...


1

Thanks to @Lodder for providing the code below which is very helpful <?php defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Http\HttpFactory; use Joomla\Registry\Registry; class ModFooHelper { public function __construct() { $this->baseurl = 'https://www.eventbriteapi.com/v3/users/me/events?token=mytoken'; } ...


Only top voted, non community-wiki answers of a minimum length are eligible