class model extends \Medoo{} 或 class model extends \Medoo\medoo 均報(bào)錯(cuò), medoo類沒(méi)找到,什么情況?? 不是有自動(dòng)加載嗎
2017-04-13
mkdir 的時(shí)候,權(quán)限位為數(shù)值型, 不需要用引號(hào),否則會(huì)導(dǎo)致生成的目錄權(quán)限不對(duì)
$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));
感覺判斷是否被加載過(guò)并沒(méi)有什么用吧,如果被加載過(guò)直接就創(chuàng)建類了,不走load函數(shù)吧
2017-03-31