最新回答 / luofeng0603
已經排查解決,if($_SESSION['auth']&&(!empty($_SESSION['auth'])))改成if(isset($_SESSION['auth'])&&(!empty($_SESSION['auth'])))后解決了
2016-03-16
講的很好,很通俗易懂。根據老師講的mvc理論,自己動手搭建了一個app后臺,刪除了View的部分,視圖完全交由前端進行渲染,效果不過。多謝老師,期待老師更多的課程
2016-03-15
require_once '../smarty/Smarty.class.php';
$smarty = new Smarty();
$smarty->left_delimiter = "{";//左定界符
$smarty->right_delimiter = "}";//右定界符
$smarty->template_dir="tpl";//html模板的地址
$smarty->compile_dir="template_c";//模板編譯生成的文件
$smarty->cache_dir = "cache";//緩存
$smarty = new Smarty();
$smarty->left_delimiter = "{";//左定界符
$smarty->right_delimiter = "}";//右定界符
$smarty->template_dir="tpl";//html模板的地址
$smarty->compile_dir="template_c";//模板編譯生成的文件
$smarty->cache_dir = "cache";//緩存
2016-03-14