cannot user $translationapp inoto the function con here in this code use…
- User
cannot user $translationapp inoto the function con here in this code use Translationapp\Translationapp;
public $Translationapp = new Translationapp('en', 'userpages'); include("xls.class.php"); require_once DIR . '/num-to-words/NumToWord_Fa.php'; require_once DIR . '/../vendor/autoload.php'; require_once DIR . '/image/SimpleImage.php';
use Translation\Translation; use chillerlan\QRCode{QRCode, QROptions};
//error_reporting(0); function con() { global db = new DB(globalConfig['dbhost'], globalConfig['dbpass']); return $db; }
- Assistant
Based on the given code, it seems that you are trying to use the
Translationappclass from theTranslationappnamespace inside theconfunction. However, it is not clear how you want to use it and where you want to use it.To provide a more specific answer, please provide more details on how you intend to use the
$Translationappobject inside theconfunction or where you want to utilize it in your code.