上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: The goal of this helper is also to make managing css files easier. This css view helper is really simple, im not kidding ;) It looks really complex but it isn't. There are just so many lines of code because i load several css files. If you create a website you will probably have several css file 阅读全文
posted @ 2011-02-16 11:54 岭南六少 阅读(230) 评论(0) 推荐(0)
摘要: This article will show you an example for a zend framework layout in html5. In the next articles i will show you the view helpers i use in this layout. I know html5 is new and not supported by all browsers. Especially IE has problems with html5. But there is a solution for the html5 tags, the proble 阅读全文
posted @ 2011-02-16 11:50 岭南六少 阅读(274) 评论(0) 推荐(0)
摘要: For a basic bootstrap there is already a lot of code inside. One thing i haven't included yet is the database initialization as well as the database profiler initialization, i will add that part in as soon as we need it...To make our code more reusable we could write several application resource 阅读全文
posted @ 2011-02-16 11:47 岭南六少 阅读(255) 评论(0) 推荐(0)
摘要: Zend Framework's controller uses the frontcontroller design pattern. All requests to the frontcontroller will get rooted through a single entry point, the index.php file. The index.php will create an instance of zend application and run the application bootstrap process by using the bootstrap.ph 阅读全文
posted @ 2011-02-16 11:46 岭南六少 阅读(579) 评论(0) 推荐(0)
摘要: We will need this configuration file to setup some default values for our application. We will see in the next tutorial how the index.php uses this file and passes its values to the application class to create an instance. As you can see we have three parts in our configuration file, a config setp f 阅读全文
posted @ 2011-02-16 11:41 岭南六少 阅读(241) 评论(0) 推荐(0)
摘要: You can download a copy of xampp here: http://www.apachefriends.org/en/xampp-windows.html. Klick on download xampp to get your copy. (XAMPP stands for X = cross-platform, Apache, MySQL, PHP and Perl) Xampp is very popular and the best is its opensource and free. In the xampp package there is also a 阅读全文
posted @ 2011-02-16 11:40 岭南六少 阅读(283) 评论(0) 推荐(0)
摘要: My goal was to create a structure that is very easy to understand, flexible enough for big or small websites and not totally different from what books or other guides recommend as a best practice files and folders structure for a Zend Framework project. Another goal was to create a core cms, which h 阅读全文
posted @ 2011-02-16 11:38 岭南六少 阅读(227) 评论(0) 推荐(0)
摘要: 转眼间三年过去了,发觉自己都还在原地踏步,俗话说“逆水行舟,不进则退”;三年间,从asp,java到PHP,在几门语言之间辗转,每门都会那么一点点,就是不精通,感觉每样都那不错手,现在下定决心未来很长一段时间内都将分配给PHP,一切就从Zend Framework框架开始吧 阅读全文
posted @ 2010-05-28 21:57 岭南六少 阅读(260) 评论(1) 推荐(0)
摘要: struts2中iterator标签的嵌套使用(if/else) 要分行和列显示同一个属性的不同记录,即该属性存在于数据库的不同记录结果 如:我要显示与zhaopin对应的danweixinxi中的name的所有记录,每行显示3列 根据记录条数计算行数,代码如下:这里list是存在于Action中的zhaopin集合属性,所以可以直接读取,需要通过id属性值来读取对应的信息值。关键是:这里的循环,tr,td的控制,#st.last,判断是否到了最后一条记录来结束所有行,否则换行继续读取数据。 iterator标签还有如下方法: boolean isEven() 当前迭代元素索引是否为偶数; b 阅读全文
posted @ 2009-12-29 09:58 岭南六少 阅读(1005) 评论(0) 推荐(0)
摘要: 今天在做身份证号码验证,发觉十五位的比较难验证,网上找到以便验证文章,未经验证,保留下来以待今后验证。。。using ...System; /**//// <summary> /// Summary description for IDCardValid /// </summary> public class IDCardValid ...{ public IDCardValid() ...{ // // TODO: Add constructor logic here // } /**//// <summary> /// 验证身份证号码 /// </ 阅读全文
posted @ 2009-12-23 15:19 岭南六少 阅读(316) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 11 下一页