<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>草窟设计 &#187; thinkphp</title>
	<atom:link href="http://www.yaoyingying.com/tag/thinkphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yaoyingying.com</link>
	<description>Wordpress, Drupal 二次开发~</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:54:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Thinkphp 分页时查询条件保存</title>
		<link>http://www.yaoyingying.com/2009/04/16/thinkphp-%e5%88%86%e9%a1%b5-%e6%9f%a5%e8%af%a2%e6%9d%a1%e4%bb%b6/</link>
		<comments>http://www.yaoyingying.com/2009/04/16/thinkphp-%e5%88%86%e9%a1%b5-%e6%9f%a5%e8%af%a2%e6%9d%a1%e4%bb%b6/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 02:48:07 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[Thinkphp分页]]></category>
		<category><![CDATA[分页]]></category>
		<category><![CDATA[分页查询]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=145</guid>
		<description><![CDATA[刚刚开始学习 Thinkphp，分页其实很简单，但是做查询的时候，点查询结果的分页时，查询条件会丢失， 用下面的方法可以保存查询条件。 /** +---------------------------------------------------------- * 根据表单生成查询条件 * 进行列表过滤 +--------------------------------------------------------- +---------------------------------------------------------- * @param Model $model 数据对象 * @param HashMap $map 过滤条件 * @param string $sortBy 排序 * @param boolean $asc 是否正序 +---------------------------------------------------------- * @return void +---------------------------------------------------------- * @throws ThinkExecption +---------------------------------------------------------- */ function _list&#40;$model,$map,$sortBy='',$asc=true&#41; &#123; //排序字段 默认为主键名 if&#40;isset&#40;$_REQUEST&#91;'order'&#93;&#41;&#41; &#123; $order = $_REQUEST&#91;'order'&#93;; &#125;else &#123; $order = [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/04/16/thinkphp-%e5%88%86%e9%a1%b5-%e6%9f%a5%e8%af%a2%e6%9d%a1%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thinkphp 模板 格式化时间戳</title>
		<link>http://www.yaoyingying.com/2009/04/01/thinkphp-%e6%a8%a1%e6%9d%bf-%e6%a0%bc%e5%bc%8f%e5%8c%96%e6%97%b6%e9%97%b4%e6%88%b3/</link>
		<comments>http://www.yaoyingying.com/2009/04/01/thinkphp-%e6%a8%a1%e6%9d%bf-%e6%a0%bc%e5%bc%8f%e5%8c%96%e6%97%b6%e9%97%b4%e6%88%b3/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 06:44:10 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[Unix时间戳]]></category>
		<category><![CDATA[时间戳]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=110</guid>
		<description><![CDATA[在Smarty模板引擎格式化时间戳 smarty 常量输出： {$smarty.now&#124;date_format:"%Y-%m-%d %H:%M:%S"} Thinkphp模板引擎格式化方法：  {$create_time&#124;date="Y-m-d",###} 或者是在CommonAction 里定义这样的函数 function toDate&#40;$time,$format='Y-m-d H:i:s '&#41; &#123; if&#40; empty&#40;$time&#41;&#41; &#123; return ''; &#125; $format = str_replace&#40;'#',':',$format&#41;; return date&#40;auto_charset&#40;$format&#41;,$time&#41;; &#125; 模板实例 {$create_time&#124;toDate='y-m-d H#i'}]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/04/01/thinkphp-%e6%a8%a1%e6%9d%bf-%e6%a0%bc%e5%bc%8f%e5%8c%96%e6%97%b6%e9%97%b4%e6%88%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thinkphp 内置字符串截取函数</title>
		<link>http://www.yaoyingying.com/2009/04/01/thinkphp-%e5%86%85%e7%bd%ae%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%88%aa%e5%8f%96%e5%87%bd%e6%95%b0/</link>
		<comments>http://www.yaoyingying.com/2009/04/01/thinkphp-%e5%86%85%e7%bd%ae%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%88%aa%e5%8f%96%e5%87%bd%e6%95%b0/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 04:26:37 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[代码人生]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[字符串截取]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=106</guid>
		<description><![CDATA[ThinkPHP有一个内置字符截取函数msubstr()如下： msubstr($str, $start=0, $length, $charset=”utf-8&#8243;, $suffix=true) $str:要截取的字符串 $start=0：开始位置，默认从0开始 $length：截取长度 $charset=”utf-8&#8243;：字符编码，默认UTF－8 $suffix=true：是否在截取后的字符后面显示省略号，默认true显示，false为不显示 调用如下 {$vo.title&#124;msubstr=5,5,&#8217;utf-8&#8242;,false} 解释：截取字符串$vo.title，从第5个字符开始，截取5个，编码为UTF－8，不显示省略号]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/04/01/thinkphp-%e5%86%85%e7%bd%ae%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%88%aa%e5%8f%96%e5%87%bd%e6%95%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

