摘要: if语句和和条件同php差不多,但每个词之间必须用空格分割开。也有一些新的条件语句,列举如下:eq相等,ne、neq不相等,gt大于,lt小于,gte、ge大于等于,lte、le 小于等于,not非,mod求模。is [not] div by是否能被某数整除,is [not] even是否为偶数,$a is [not] even by $b即($a / $b) % 2 == 0,is [not] odd是否为奇,$a is not odd by $b即($a / $b) % 2 != 0 阅读全文
posted @ 2011-10-11 13:42 同城中人 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 在smarty的使用过程中,有很多时候需要将一个数组输出到模板中来处理,以下将演示如何将一个索引(index)数组和关联(assocaite)数组在页面中展现出来。本文中假设有如下一个索引数组1、索引数组Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 阅读全文
posted @ 2011-10-11 13:41 同城中人 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 以下内容转载自:http://www.cnblogs.com/rexy/archive/2010/05/14/1735264.html谢谢rezy前辈的分享Zend Framework 版本 1.10在应用程序的初始化引导过程中,主要由Zend_Application类对配置文件进行加载。Zend_Application_Bootstrap_BootstrapAbstract类也会根据配置文件加载相应的引导资源类。因此我们只要看看Zend_Application类的setOptions()方法和Zend_Application_Bootstrap_BootstrapAbstract的setOp 阅读全文
posted @ 2011-10-11 06:56 同城中人 阅读(288) 评论(0) 推荐(0) 编辑