少了
private function showmessage($info, $url){
echo "<script>alert('$info');window.location.href='$url'</script>";
exit;
}
private function showmessage($info, $url){
echo "<script>alert('$info');window.location.href='$url'</script>";
exit;
}
2017-02-28
老是讲的简单易懂,马上准备自己写一个简单的MVC网站去,之后再优化数据库操作类,然后是公共方法。。。一步步完善基础模型,以后可以随意用于网站建设
2017-02-27
C:\wamp64\www\mvc\libs\Controller
adminController.class.php该文件在上一章的mvc文件夹里面,再新建一个libs文件夹(和framwork同级,不是framwork里面的libs),在再Lib文件夹里面新建Controller文件夹,在Controller文件夹里面放入adminController.class.php
adminController.class.php该文件在上一章的mvc文件夹里面,再新建一个libs文件夹(和framwork同级,不是framwork里面的libs),在再Lib文件夹里面新建Controller文件夹,在Controller文件夹里面放入adminController.class.php
2017-02-27
$smarty->setLeftDelimiter('<{'); //左定界符
$smarty->setRightDelimiter('}>'); //右定界符
$smarty->setTemplateDir('tpl'); //模板地址
$smarty->setCompileDir('comp'); //编译文件
$smarty->setCacheDir('cache'); //缓存地址
$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$smarty->setCacheLifetime(300);
smarty-3.1.30
$smarty->setRightDelimiter('}>'); //右定界符
$smarty->setTemplateDir('tpl'); //模板地址
$smarty->setCompileDir('comp'); //编译文件
$smarty->setCacheDir('cache'); //缓存地址
$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$smarty->setCacheLifetime(300);
smarty-3.1.30
2017-02-22
老师,感觉这样的课程目录有点混乱呀,前面明白了MVC过后 新手就习惯性的把smarty往MVC源代码里去套 结果发现很多地方和前面的代码有冲突(思路冲突)
2017-02-20