Android UI控件之Gallery +GridView实现图片与小圆点同步变化
2013-03-23 07:37
531 查看
1、smarty配置文件:(直接继承smarty类)
<?php
require('/libs/Smarty.class.php');
class SmartyMistake extends Smarty {
function __construct() {
parent::__construct();
$this->template_dir = 'templates/';
$this->compile_dir = 'templates_c/';
$this->cache_dir = 'cache/';
$this->cache_lifetime = 0;
$this->caching = false;
$this->left_delimiter = "{ff:";
$this->right_delimiter = "/}";
$this->caching = true; //生成静态页必须开启,否则生成的静态页无动态内容
}
}
2、模板处理页面(index.php)
$vv = "说句心里话";
$smarty->assign("result",$vv);
$smarty->display('templates/index.tpl');
$content = $smarty->fetch('index.tpl', null, null, false);
$fp = fopen('index.html', 'w');
fwrite($fp, $content);
fclose($fp);
本文出自 “说句心里话” 博客,请务必保留此出处http://gesner.blog.51cto.com/2643296/477902
<?php
require('/libs/Smarty.class.php');
class SmartyMistake extends Smarty {
function __construct() {
parent::__construct();
$this->template_dir = 'templates/';
$this->compile_dir = 'templates_c/';
$this->cache_dir = 'cache/';
$this->cache_lifetime = 0;
$this->caching = false;
$this->left_delimiter = "{ff:";
$this->right_delimiter = "/}";
$this->caching = true; //生成静态页必须开启,否则生成的静态页无动态内容
}
}
2、模板处理页面(index.php)
$vv = "说句心里话";
$smarty->assign("result",$vv);
$smarty->display('templates/index.tpl');
$content = $smarty->fetch('index.tpl', null, null, false);
$fp = fopen('index.html', 'w');
fwrite($fp, $content);
fclose($fp);
本文出自 “说句心里话” 博客,请务必保留此出处http://gesner.blog.51cto.com/2643296/477902
相关文章推荐
- Android UI控件之Gallery +GridView实现图片与小圆点同步变化
- Gallery + GridView 实现图片与小圆点同步变化
- Gallery + GridView 实现图片与小圆点同步变化
- Android UI控件之Gallery实现拖动式图片浏览效果
- Android UI控件之Gallery(拖动效果) --拖动式图片浏览
- Android UI控件之Gallery --拖动、覆盖、循环、3D图片浏览 效果之一
- Android自定义Gallery控件实现3D图片浏览器
- Android UI控件之Gallery --拖动、覆盖、循环、3D图片浏览 效果之一
- GridView和Gallery两个控件实现图片浏览
- 【Android 开发】:UI控件之 ImageView 实现适屏和裁剪图片的功能
- Android UI控件之Gallery --拖动、覆盖、循环、3D图片浏览 效果之二
- Android编程滑动效果之Gallery+GridView实现图片预览功能(附demo源码下载)
- Android UI控件之Gallery --拖动、覆盖、循环、3D图片浏览 效果之二
- Android自定义“图片+文字”控件四种实现方法之一--------Gallery原理(提供源码下载)
- Android UI控件之ImageSwitcher实现图片切换效果
- Android UI控件之Gallery实现循环效果总结
- 图片设置[置顶] Android之Gallery和GridView两种方式与ImageSwitcher实现带预览的和幻灯片方式的两种图片浏览器
- Android UI控件之Gallery实现循环效果总结
- 【Android 开发】:UI控件之 ImageView 实现图片旋转和缩放功能
- Android-高级UI控件_Gallery图片切换