<?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>Tairan's Story &#187; FleaPHP</title>
	<atom:link href="http://www.tairan.net/index.php/tag/fleaphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tairan.net</link>
	<description>「知之真切笃实处即是行。行之明觉精察处即是知，知行工夫不可离。」</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:12:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>FleaPHP 学习笔记 (-)</title>
		<link>http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/</link>
		<comments>http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 07:01:00 +0000</pubDate>
		<dc:creator>Daniel Wang</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[我的声音]]></category>
		<category><![CDATA[FleaPHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Framework]]></category>

		<guid isPermaLink="false">http://tairan.wordpress.com/2008/06/02/fleaphp-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0/</guid>
		<description><![CDATA[From Tairan&#8217;s Story, post FleaPHP 学习笔记 (-) FleaPHP 上手还算是很容易的，毕竟都是中文的文档。(阅读没有什么限制)FleaPHP 官方网站对如何安装使用做了大量的工作，只是有些细节问题需要注意一下。下面记录下自己运行第一个controller 下载&#38;安装我现在的是最新稳定版本 1.0.70.1078FleaPHP 的安装是很容易的，可以放到web site的任意地方，建议采用官方自带的检测工具来测试当前工作环境。 目录结构 (简述)FleaPHP 的安装倒是很容易，但是开始写东西的时候就要注意了，目录结构是严格的，并且区分大小写 demo/App/Controller/Default.php&#60;?phpclass Controller_Default //extends FLEA_Controller_Action 这里好像不需要显式继承{ function actionIndex() { echo &#8220;controller index&#8221;; } function actionSayHello() { echo &#8220;say hello fleaPHP&#8221;; }}?&#62; /index.php &#60;?phprequire(&#8216;FLEA/FLEA.php&#8217;);FLEA::import(dirname(__FILE__) . &#8216;/App&#8217;); //这是我们程序的所在地FLEA::runMVC();? /FLEAFLEA 存放目录 在这里，index.php作为一个控制中心，负责寻找和调用Controller, 如我们调用actionSayHello 那么可以通过URL 这样做http://localhost/?action=SayHello From Tairan&#8217;s Story, post FleaPHP 学习笔记 (-) [...]]]></description>
			<content:encoded><![CDATA[<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/">FleaPHP 学习笔记 (-)</a></p>
</div>
<p>FleaPHP 上手还算是很容易的，毕竟都是中文的文档。(阅读没有什么限制)<br />FleaPHP 官方网站对如何安装使用做了大量的工作，只是有些细节问题需要注意一下。下面记录下自己运行第一个controller</p>
<p>下载&amp;安装<br />我现在的是最新稳定版本 1.0.70.1078<br />FleaPHP 的安装是很容易的，可以放到web site的任意地方，建议采用官方自带的检测工具来测试当前工作环境。</p>
<p>目录结构 (简述)<br />FleaPHP 的安装倒是很容易，但是开始写东西的时候就要注意了，目录结构是严格的，并且区分大小写</p>
<p>demo<br />/App/Controller/Default.php<br />&lt;?php<br />class Controller_Default <span style="color:rgb(0,102,0);">//extends FLEA_Controller_Action</span><img style="color:rgb(0,102,0);" width="1" height="1" /><span style="color:rgb(0,102,0);"> 这里好像不需要显式继承</span><br />{<br />    function actionIndex() {<br />        echo &#8220;controller index&#8221;;   <br />    }</p>
<p>    function actionSayHello() {<br />        echo &#8220;say hello fleaPHP&#8221;;<br />    }<br />}<br />?&gt;</p>
<p>/index.php</p>
<p>&lt;?php<br />require(&#8216;FLEA/FLEA.php&#8217;);<br />FLEA::import(dirname(__FILE__) . &#8216;/App&#8217;); <span style="color:rgb(0,102,0);">//这是我们程序的所在地</span><br />FLEA::runMVC();<br />?</p>
<p>/FLEA<br />FLEA 存放目录</p>
<p>在这里，index.php作为一个控制中心，负责寻找和调用Controller, 如我们调用actionSayHello 那么可以通过URL 这样做<br />http://localhost/?action=SayHello
<div style="font-style: italic">
<p><strong>From</strong> <a href="http://www.tairan.net/">Tairan&#8217;s Story</a>, <strong>post</strong> <a href="http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/">FleaPHP 学习笔记 (-)</a></p>
</div>
<hr />
<p><small>© Daniel Wang for <a href="http://www.tairan.net">Tairan's Story</a>, 2008. |
<a href="http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/">Permalink</a> |
<a href="http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/&title=FleaPHP 学习笔记 (-)">del.icio.us</a>
<br/>
Post tags: <a href="http://www.tairan.net/index.php/tag/fleaphp/" rel="tag">FleaPHP</a>, <a href="http://www.tairan.net/index.php/tag/php/" rel="tag">PHP</a>, <a href="http://www.tairan.net/index.php/tag/web-framework/" rel="tag">Web Framework</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tairan.net/index.php/2008/06/02/the-learning-note-for-fleaphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
