摘要:
详见代码:var OWA = {}OWA.util = { ns: function(string) { return OWA.config.ns + string; }, nsAll: function(obj) { var nsObj = new Object(); for(param in obj) { // print out the params if (obj.hasOwnProperty(param)) { nsObj[OWA.config.ns+param] = obj[param]; } } return nsObj; }, getScript: function(file, 阅读全文
摘要:
新建一个libraries 代码如下:使用$this->ci_smarty->set('pv',$pv);$this->ci_smarty->set('pv_se',$pv_se);$this->ci_smarty->build('home.html');<?php// load Smarty libraryrequire_once(APPPATH.'libraries/smarty/Smarty.class.php');class CI_smarty extends Smarty { p 阅读全文