<?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>philpalmieri &#187; wordpress</title>
	<atom:link href="http://philpalmieri.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://philpalmieri.com</link>
	<description>php, codeigniter, mysql, jquery, as3 &#38; flex</description>
	<lastBuildDate>Sat, 03 Apr 2010 04:51:38 +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>Moved to Mediatemple</title>
		<link>http://philpalmieri.com/2009/12/moved-to-mediatemple/</link>
		<comments>http://philpalmieri.com/2009/12/moved-to-mediatemple/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 13:07:00 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[General Internet Stuff]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://philpalmieri.com/?p=185</guid>
		<description><![CDATA[As of today, this site is now hosted on MediaTemple&#8217;s GS! I found a coupon code online for 20% for life, so now i&#8217;m only paying $16/month for all my personal hosting needs (up to 100 domains). The admin panel and server are surprisingly fast and easy to configure too. I know a few people [...]]]></description>
			<content:encoded><![CDATA[<p>As of today, this site is now hosted on MediaTemple&#8217;s GS!</p>
<p>I found a<a href="http://www.retailmenot.com/view/mediatemple.net" target="_blank"> coupon code online</a> for 20% for life, so now i&#8217;m only paying $16/month for all my personal hosting needs (up to 100 domains).  The admin panel and server are surprisingly fast and easy to configure too.</p>
<p>I know a few people who weren&#8217;t happy with the GS when it first came out, but so far so good.</p>
<p>To migrate over this site, i just shelled in and rsynced my www folder (took about 1 minute &#8211; including my personal large uploads folder).  Then, just turn on the database, tweak the wp-options and I was online.</p>
<p>If you are considering a new, inexpensive, reliable host, i would highly recommend them.</p>
]]></content:encoded>
			<wfw:commentRss>http://philpalmieri.com/2009/12/moved-to-mediatemple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Make Codeigniter and WordPress Play Well Together</title>
		<link>http://philpalmieri.com/2009/06/codeigniter-and-wordpress-play-well-together/</link>
		<comments>http://philpalmieri.com/2009/06/codeigniter-and-wordpress-play-well-together/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 21:15:58 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://philpalmieri.com/?p=90</guid>
		<description><![CDATA[So, While waiting for the much anticipate Expression Engine, we had to have a non-custom solution to a client friendly CMS. It turns out its actually really easy to make wordpress and codeigniter play in the same sandbox together &#8211; with almost no configuration. Basically what you do is install wordpress and get it running [...]]]></description>
			<content:encoded><![CDATA[<p>So, While waiting for the much anticipate Expression Engine, we had to have a non-custom solution to a client friendly CMS.  It turns out its actually really easy to make wordpress and codeigniter play in the same sandbox together &#8211; with almost no configuration.</p>
<p>Basically what you do is install wordpress and get it running on its own, then dump in your ci setup, replacing the wordpress index file with your codeigniter one.</p>
<p>Next, modify the index.php (Codeigniter bootstrapper) and require in the wp-load.php file (wordpresses bootstrapper)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/*
|--------------------------------------
| LOAD THE FRONT CONTROLLER
|--------------------------------------
|
| And away we go...
|
*/</span>
&nbsp;
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'wp-load.php'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span> BASEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'codeigniter/CodeIgniter'</span><span style="color: #339933;">.</span>EXT<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* End of file index.php */</span>
<span style="color: #666666; font-style: italic;">/* Location: ./index.php */</span></pre></td></tr></table></div>

<p>This is pretty much it.. the only other thing you need to do is to use the wp_head() to pull in all the css/js that are required from any modules.</p>
<p>Because all of wordpress is run from the global space with functions (as apposed to a main class like CI) all the functions are available to you in your templates and views in ci..</p>
<p>Now, you have a wp-admin with all your content and your client access powering content for a 100% CI front end.</p>
<p>What we are doing (thanks <a href="http://EasilyAmusedinc.com">Easily Amused</a> for the idea) is building categories for each area (like a weblog in EE) and letting our customer add posts and add them to that category to go on that page&#8230;  Like a homepage cateory, the latest post gets pulled in</p>
<p>The following code is in my view! (sorry about the crappy formatting, this site is wordpress and it freaks out when putting wp code into posts&#8230;</p>
<p>&#8212;</p>
<h2>Homepage Only Feed</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    query_posts('numberposts=1&amp;cat=3');
    while ( have_posts() ) : the_post()
     &lt;h3&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;
     &lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
    &lt;p&gt;Updated <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'l, F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
   <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Get wp-comments.php template ?&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
 &lt;h3&gt;Flickr Feed Plugin&lt;/h3&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> widget_flickrRSS<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>
There is a lot more to be done, next step i will be working on is a CI library that uses the WP users/auth, so it can be portable, as well as some kind of module in WP that has easy access to CI Models &#038; Controllers like doing an AJAX call or AMF Call</p>
]]></content:encoded>
			<wfw:commentRss>http://philpalmieri.com/2009/06/codeigniter-and-wordpress-play-well-together/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>
