首页 > 移动平台 > 详细

Smarty 在sinaapp部署中遇到的问题Uncaught --> Smarty: unable to write file sinaapp

时间:2015-03-22 09:14:56      阅读:322      评论:0      收藏:0      [点我收藏+]

因为sae作为云计算平台式无法进行文件读写操作的,所以Smarty中输出的缓存文件就无法实现。


但是sae提供了一个很好的方式可以实现文件的读写操作。那就是使用Memcache


http://skirt.sinaapp.com/html/332.html

上面这个网址教了怎么开启Memcache

开启之后再在config文件里增加

	$link = memcache_init();
	$smarty->compile_dir = 'saemc://smartytpl/';
	$smarty->cache_dir = 'saemc://smartytpl/';
	$smarty->compile_locking = false;
以上四句代码即可,这样就可以执行运行了

Smarty 在sinaapp部署中遇到的问题Uncaught --> Smarty: unable to write file sinaapp

原文:http://blog.csdn.net/liangdong2014/article/details/44521895

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!