<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>bbPress Support Forums &#187; Topic: how the bbpress&#039;s front page controller works?</title>
		<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works</link>
		<description>bbPress Support Forums &#187; Topic: how the bbpress&#039;s front page controller works?</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 10:22:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/how-the-bbpresss-front-page-controller-works" rel="self" type="application/rss+xml" />

		<item>
			<title>Michael Adams (mdawaffe) on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1377</link>
			<pubDate>Mon, 13 Nov 2006 19:33:46 +0000</pubDate>
			<dc:creator>Michael Adams (mdawaffe)</dc:creator>
			<guid isPermaLink="false">1377@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>ear1grey,</p>
<p>Actually MultiViews looks for topic.php if it hasn't found topic/, but otherwise you're spot on.</p>
<p>You can also use RewriteRules which forces the server to do the same thing 'manually'.</p>
<p>hywl51,</p>
<p>When you request that URL, Apache's MultiViews or RewriteRules (whichever you are using) loads topic.php.  That file then prepares a bunch of data and displays it with my-templates/topic.php (If that file exists) or bb-templates/topic.php (otherwise).</p>
<p>If you are familiar with the way WordPress works, it may not help much :)  This is one area where WordPress and bbPress are quite different.
</p>]]></description>
					</item>
		<item>
			<title>ear1grey on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1358</link>
			<pubDate>Mon, 13 Nov 2006 11:34:23 +0000</pubDate>
			<dc:creator>ear1grey</dc:creator>
			<guid isPermaLink="false">1358@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>You'll have noticed that there's no "topic" subdirectory inside your "forums" directory, so what I think you're asking is "is bbPress really serving a page that doesn't physically exist on my hard drive?"</p>
<p>The answer is yes, bbPress generates the page on the fly, so there is no stored page that has the content of that URL.</p>
<p>Apache's <code>MultiViews</code> option makes this happen because the server tries to find the best match to your URL.  It looks first for <code>forums</code> and finds it, so then it looks for <code>topic</code> in forums, which doesn't exist, so it tries the next best thing, which is to look for an <code>index</code> of some kind, and it finds the bbPress <code>index.php</code>.</p>
<p>When bbPress runs (through index.php) it still sees the originally requested url, so the fact that it's a request for <code>topic/242</code> is spotted by the code - it's a simple as stripping the integer value from the string and using that as the primary key for the database lookup.</p>
<p>Briefly, the sequence is that <code>index.php</code> loads <code>bb-load.php</code>, <code>bb-load.php</code> loads <em>your</em> <code>config.php</code>, which specifies where your DB is (so the content can be generated), <code>config.php</code> then loads <code>bb-settings.php</code> which is where most of the core request-processing is done.  </p>
<p>At least... that's what I got from looking through the code :)  A core dev. might be able to describe it better.
</p>]]></description>
					</item>
		<item>
			<title>hywl51 on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1355</link>
			<pubDate>Mon, 13 Nov 2006 08:55:11 +0000</pubDate>
			<dc:creator>hywl51</dc:creator>
			<guid isPermaLink="false">1355@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Hi Atsutane</p>
<p>Let's explain the question clearly:</p>
<p><a href="http://bbpress.org/forums/topic/242?replies=4" rel="nofollow">http://bbpress.org/forums/topic/242?replies=4</a></p>
<p>For url above,  I want to know which page that url will finally located on. I guess all request will be first directed to index.php, but how about the next step and which page on earth will be directed to display the main body of page.</p>
<p>I am not native English, I don't know if I have made the question clear. </p>
<p>Thanks for you kind response.<br />
hywl51
</p>]]></description>
					</item>
		<item>
			<title>Atsutane on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1290</link>
			<pubDate>Fri, 10 Nov 2006 07:32:34 +0000</pubDate>
			<dc:creator>Atsutane</dc:creator>
			<guid isPermaLink="false">1290@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Actually i don't know what do you mean by "how the bbpress front page works?" Do you mean the page structure or do you mean the url structure?
</p>]]></description>
					</item>
		<item>
			<title>hywl51 on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1289</link>
			<pubDate>Fri, 10 Nov 2006 06:47:15 +0000</pubDate>
			<dc:creator>hywl51</dc:creator>
			<guid isPermaLink="false">1289@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Thank Atsutane.</p>
<p>I set pretty permalink and got bbpress working.</p>
<p>I am a newbie for PHP and eager to know how the box work behind the page. Can you please give me some advice or link about the question I mentioned before--how the bbpress front page works?</p>
<p>Thanks<br />
hywl51
</p>]]></description>
					</item>
		<item>
			<title>Atsutane on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1221</link>
			<pubDate>Wed, 08 Nov 2006 10:07:42 +0000</pubDate>
			<dc:creator>Atsutane</dc:creator>
			<guid isPermaLink="false">1221@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Most likely you forgot to set pretty permalink. <a href="http://bbpress.org/documentation/faq/#pretty-permalinks" rel="nofollow">http://bbpress.org/documentation/faq/#pretty-permalinks</a>
</p>]]></description>
					</item>
		<item>
			<title>hywl51 on "how the bbpress&#039;s front page controller works?"</title>
			<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1217</link>
			<pubDate>Wed, 08 Nov 2006 08:46:07 +0000</pubDate>
			<dc:creator>hywl51</dc:creator>
			<guid isPermaLink="false">1217@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>hi,</p>
<p>I installed a bbpress with the wordpress integration. But when I access one topic like:<br />
<a href="http://localhost/wordpress/bbpress/topic/1?replies=1" rel="nofollow">http://localhost/wordpress/bbpress/topic/1?replies=1</a><br />
the browser display:<br />
404 Not Found<br />
The requested URL /bbpress/topic/1?replies=1 does not exist.</p>
<p>I don't know how the bbpress front page works, so I cann't find the real page the url above specify. Can someone give me some guids or any document about it. I browered and searched this site and found nothing  about it.</p>
<p>Thanks<br />
hywl51
</p>]]></description>
					</item>

	</channel>
</rss>

