I have a some class, it include Smarty, but my class use namespace test, Smarty don\'t use namespaces. How include Smarty, without writing namespaces into smarty files (it h
Tell your namespaced code it's in the global namespace:
$smarty = new \Smarty();
Additionally importingDocs works this way:
use Smarty;
Then you can use your code as it was:
$smarty = new Smarty();
See as well: How to use “root” namespace of php?.