问答详情
源自:5-3 Smarty的配置与实例化

left_delimiter = "{"; $smarty->right_delimiter = "}"; $smarty->template_dir = "tpl"; $smarty->compile_dir = "template_c"; $smarty->cache_dir = "cache"; $smarty->assig('articletitle', '文章标题'); $smarty->display('test.tpl'); ?>

http://img.mukewang.com/56e0cd6b0001f02a06280521.jpghttp://img.mukewang.com/56e0cda90001d66808850298.jpghttp://img.mukewang.com/56e0cdda0001703f09181048.jpg不知道哪里有问题

提问者:1838149510 2016-03-10 09:30

个回答

  • 伏笔
    2016-03-11 00:02:54

    $smarty->assig改成$smarty->assign,如果你的apache可以用,为什么不直接localhost进入