少了
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
看完那個項目,有點暈,尤其不把語速調成0.75的話?;旧纤悸愤€沒理清就要被帶到下一個控制器或者模型去了。。
2017-02-27
老是講的簡單易懂,馬上準備自己寫一個簡單的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