I have all the files and languages set in the right place yet I get an error for 'redeclaring' the function _ Here's my code:
include("../application/libs/languages/libs/streams.php");
include("../application/libs/languages/libs/gettext.php");
$locale_file = new FileReader("application/libs/languages/locale/en_gb/en_GB.mo");
$locale_fetch = new gettext_reader($locale_file);
function _($text){
global $locale_fetch;
return $locale_fetch->translate($text);
}
I'm not too sure why it's clashing wish another function as I haven't declared any like that. Here's my error:
Fatal error: Cannot redeclare _() in C:\xampp\htdocs\mvc\application\views_templates\header.php on line 12
The error line 12 is the ending } at the bottom of the code above