您的位置:首页 > 产品设计 > UI/UE

Android UI控件之Gallery +GridView实现图片与小圆点同步变化

2013-03-23 07:37 525 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: