Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/blame/commit/d91f6e36431faeaff6ac613086139a81a5eec432/system/templateEngines/smarty/autoload.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework

12 lines
311 B

6 years ago
<?php
include __DIR__."/Smarty.class.php";
function translate($params = '', $content = '', $smarty = '', &$repeat = '', $template = '') {
if (class_exists('Translate')) {
$trans = new Translate();
return ($trans->translation($content));
} else {
return $content;
}// do something translatey here...
}