Function getCurrentLangName

Hello,

I would like to use getCurrentLangName function in some files like BxDolParams.php &BxDolDb.php ... but i get blank page in the site when using it,

I tried to include languages.inc.php but i got the same problem.

Can any one help me to solve this problem?

Quote · 21 May 2010

Any one ??

Quote · 22 May 2010

In order to use any function you have to instantiate the class(es) that contain the function. If it's a static function then you can call it directly. Make sure the classes in your includes list and the page can actually find the class. You can also use the constants used in the header.inc.php file to make sure you are targetting the correct paths.

You can then call them this way:

$yourvar = object -> function(parameter1,parameter2);

echo $yourvar;

If you don't understand the basics of classes do a Google search, there are tons of resources that explain it.

Updating my BoonexNerd.net site.
Quote · 22 May 2010

Thank you for your reply, can you tell me where is the class of function getCurrentLangName ?

Because i tried $myrvar=getCurrentLangName();

It's working but not in all the files.

Quote · 22 May 2010

You mentioned it. It's languages.inc.php

Again, make sure your page sees that file.

You might want to run a blunt test that includes the file in your root then see if you can pull the value from that.

Updating my BoonexNerd.net site.
Quote · 22 May 2010

Ok when i include the languages.inc.php i get just a blank page in the site pages, it's causing a problem here in BxDolParams.php &BxDolDb.php.

Quote · 22 May 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.