我的web框架

==========================================================

前端:css(bootstrap,自己的代码片段),js(jquery,自己的代码片段),html,交互设计。

后端:php(数据库配置,数据操作,具体页面逻辑,控制器),smarty(smarty引用,实例化等都放到一个文件中,参考其他用smarty写的网站),mysql(常用的数据库操作语句)。
工具:服务器php环境(擅长),用WAMP集成环境,sublime编辑器(用svn,emmet等插件),git和svn版本控制(在自己的网站中没有用到,因为需要在服务器端配置环境),photoshop,虚拟机和IETester以及其他浏览器,FlashFXP(ftp管理工具)。
==========================================================
 
我的css代码片段:
 
我的js代码片段:
 
php代码片段:
 
smarty代码片段:
配置:
1 <?php
 2 
 3     //创建smarty对象
 4     require_once './libs/Smarty.class.php';
 5 
 6     $smarty = new Smarty;//建立smarty实例对象$smarty
 7     $smarty -> caching = false;//是否使用缓存
 8     $smarty -> template_dir = "./templates";//设置模板目录
 9     $smarty -> compile_dir = "./templates_c";//设置编译目录
10     $smarty -> cache_dir = "./smarty_cache";//缓存文件夹
11     //修改左右边界符号
12     $smarty -> left_delimiter="<{";
13     $smarty -> right_delimiter="}>";
14 
15     $smarty -> assign("var1","hello world");//
16     $smarty -> display("hello.tpl");//
17     
18 ?>
View Code

smarty模板操作变量:

http://www.cnblogs.com/snowinmay/p/3170092.html

smarty模板的内置函数:

相关文章:

  • 2021-04-19
  • 2021-08-01
  • 2021-07-16
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-06-05
  • 2021-07-28
  • 2021-11-14
  • 2022-01-21
  • 2022-12-23
相关资源
相似解决方案