Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/src/commit/419378fe37fad4f31ac602bab3a680e13381192c/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
347 B

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