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 has many system plugins)
import "smarty/Smarty.php"
class testik
{
public function __construct ()
{
$smarty = new Smarty();
}
}
<?php
class Smarty
{
//somcode
}
Smarty has autoloader class and include its plugins, plugins haven't namespaces too.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…