class model extends \Medoo{} 或 class model extends \Medoo\medoo 均报错, medoo类没找到,什么情况?? 不是有自动加载吗
2017-04-13
$loader = new \Twig_Loader_Filesystem('./app/views');
$twig = new \Twig_Environment($loader, array(
'cache' => MY.'/log/twig',
'debug' => DEBUG,
));
$template = $twig->load($file);
$template->display($this->assign?:'');
$twig = new \Twig_Environment($loader, array(
'cache' => MY.'/log/twig',
'debug' => DEBUG,
));
$template = $twig->load($file);
$template->display($this->assign?:'');
2017-04-03
if(class_exists($controller));
if(method_exists($controller,$method));
if(method_exists($controller,$method));