期刊文献+

PHP+Smarty环境下网页与数据库的连接和访问

Connection and access database in the PHP+Smarty environment
下载PDF
导出
摘要 在PHP开发环境中,Smarty模板是一种处于领先地位的主流模板,能高效的实现网站前台和数据库后台之间的交互,将后台数据库中的数据信息呈现在前台网页上。Smarty模板将与数据库的连接等操作封装在类中,在以后的开发中只需要调用即可;利用PHP文件实现对数据库的代码控制,将对数据库的访问结果通过tpl模板文件显示,这种做法使得代码控制和页面美工分离开来,开发过程更加清晰明了。 In PHP development environment, the Smarty template is a mainstream template which can realize the interaction between the front desk and the database. The data information in the background database is presented in the front page. Smarty template encapsulates the operations of connection with database and so on in the class, in the future development only need to call. The PHP file is used to achieve the code control of the database, the database access results are displayed through the TPL template file, this approach separates the code control and the page art, makes the development process more clear.
作者 黄玲娜
出处 《计算机时代》 2015年第12期65-66,69,共3页 Computer Era
关键词 PHP SMARTY 网站开发 数据库访问 PHP Smarty Web site development database access
  • 相关文献

参考文献4

二级参考文献13

  • 1杜波瓦.MySQL网络数据库指南[M].北京:机械工业出版社,2000.
  • 2龙马工作室.ASP+SQLServer组建动态网站[M].北京:人民邮电出版社,2004.
  • 3Linux Frees/WAN[EB/OL].http://www.freeswan.org.
  • 4....http://cn.php.net/manual/zh/install.linux.php,,..
  • 5....http://httpd.apache.org/docs/,,..
  • 6台湾联盟 http://www.twpug.net/modules/mylinks.
  • 7Smarty官方网址 http://smarty.php.net.
  • 8林涵.运用PHP技术进行大型网站建设[J]电脑知识与技术,2011(26):6351-6352.
  • 9魏婧,温振宏,郭琛.基于PHP+MySql的学生选课系统设计[J].中国科教创新导刊,2010(35):200-201. 被引量:2
  • 10余肖生,易偲.基于PHP的开发环境搭建与网站设计实现[J].重庆理工大学学报(自然科学),2011,25(3):74-77. 被引量:30

共引文献143

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部