<?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>Refreshingly Blue &#187; CodeIgniter</title>
	<atom:link href="http://www.refreshinglyblue.com/category/codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.refreshinglyblue.com</link>
	<description>Notes by Lee Blue</description>
	<lastBuildDate>Sun, 29 Aug 2010 03:50:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHPDoc &#8211; How To Continue Comments In TextMate</title>
		<link>http://www.refreshinglyblue.com/2008/08/21/phpdoc-how-to-continue-comments-in-textmate/</link>
		<comments>http://www.refreshinglyblue.com/2008/08/21/phpdoc-how-to-continue-comments-in-textmate/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 15:40:01 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=54</guid>
		<description><![CDATA[When using TextMate to code PHP, you may be annoyed by the way TextMate handles hitting the Enter key while in a PHP comment block. I would like the lead * to be continued on the new line. There are two ways to get this to happen.

The Easy Way
Intead of hitting the Return key on [...]]]></description>
			<content:encoded><![CDATA[<p>When using TextMate to code PHP, you may be annoyed by the way TextMate handles hitting the <em>Enter</em> key while in a PHP comment block. I would like the lead * to be continued on the new line. There are two ways to get this to happen.</p>
<p><span id="more-54"></span></p>
<h2>The Easy Way</h2>
<p>Intead of hitting the <em>Return</em> key on your keyboard, hit the <em>Enter</em> key on the number pad. The new line that gets created will have the leading * and you can continue your comment. If you are on a laptop, hit <em>function Return</em> since you may not have a number pad.</p>
<h2>The Slightly Harder Way</h2>
<p>If you don&#8217;t want to fling your hand all the way over to your number pad and would prefer to just hit the normal <em>Return</em> key to continue your comment, you can create a TextMate Snippet to get TextMate to enter the leading * on the new line.</p>
<ul>
<li>Open the Bundle Editor</li>
<li>Create a new Snippet</li>
<li>Name the Snippet something like &#8220;phpdoc newline&#8221;</li>
<li>Clear the default snippet text and enter this regular expression</li>
</ul>
<blockquote>
<pre><code>
${TM_CURRENT_LINE/(.<em>&#42;\/$)|.</em>?(\/&#42;(?!.<em>&#42;\/)).</em>|.<em>/(?1:
:
(?2: )</em> )/}
</code></pre>
</blockquote>
<ul>
<li>Set <strong>Activation</strong>: Key Equivalent</li>
<li>Click in the <strong>Activation text box</strong> and press your <em>Return</em> key</li>
<li>Set <strong>Scope Selector</strong>: source.php comment.block</li>
</ul>
<p>Thank you to <a href="http://www.killersoft.com/randomstrings/2006/06/20/textmate-and-phpdoc-comment-blocks/">Clay Loveless for blogging about this Snippet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/08/21/phpdoc-how-to-continue-comments-in-textmate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TheWebLessons.com PHP Screencast Tutorials</title>
		<link>http://www.refreshinglyblue.com/2008/08/05/theweblessonscom-php-screencast-tutorials/</link>
		<comments>http://www.refreshinglyblue.com/2008/08/05/theweblessonscom-php-screencast-tutorials/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 19:19:54 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/?p=35</guid>
		<description><![CDATA[
  

PHP Screencasts, PDF books, and source code. Lessons will be cover PHP Development, and the CodeIgniter PHP Framework.
As of today, TheWebLessons.com is open. If you register during the beta phase, you will receive a 50% discount on all of the lessons that will ever be published.
Lesson Topics Will Include

Object Oriented Programming in PHP5
Setting [...]]]></description>
			<content:encoded><![CDATA[<p><center><br />
  <a href="http://www.theweblessons.com"><img src="http://www.digitalunderware.com/images/blog/the_web_lessons_sm.jpg" border="0"></a><br />
</center></p>
<p><strong>PHP Screencasts, PDF books, and source code.</strong> Lessons will be cover PHP Development, and the CodeIgniter PHP Framework.</p>
<p>As of today, <a href="http://www.theweblessons.com">TheWebLessons.com</a> is open. If you register during the beta phase, you will receive a <strong>50% discount</strong> on all of the lessons that will ever be published.</p>
<h2>Lesson Topics Will Include</h2>
<ul>
<li>Object Oriented Programming in PHP5</li>
<li>Setting Up A CodeIgniter Project</li>
<li>Understanding MVC Architecture</li>
<li>Using Your Own Libraries With CodeIgniter</li>
<li>Working with Sessions</li>
<li>Databases and CodeIgniter</li>
<li>Working With Forms</li>
<li>Sending Email</li>
<li>Testing Your Code</li>
<li>And more&#8230;</li>
</ul>
<p><a href="http://www.theweblessons.com">Sign up today to lock in your discount.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/08/05/theweblessonscom-php-screencast-tutorials/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IDs With Square Brackets And jQuery</title>
		<link>http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/</link>
		<comments>http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 17:28:11 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/</guid>
		<description><![CDATA[I have recently become quite fond of using jQuery as my javascript library in conjunction with my CodeIgniter PHP projects. In PHP, I often name my form fields in the format of&#8230;

model_name[attribute_name]
For Example...
contact[first_name]
contact[last_name]
etc.

I do this so that I can easily retrieve all the attributes for each model and then quickly store them to the database [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently become quite fond of using jQuery as my javascript library in conjunction with my CodeIgniter PHP projects. In PHP, I often name my form fields in the format of&#8230;</p>
<pre>
model_name[attribute_name]
For Example...
contact[first_name]
contact[last_name]
etc.
</pre>
<p>I do this so that I can easily retrieve all the attributes for each model and then quickly store them to the database using CodeIgniter&#8217;s database helper functions. For example, taking advantage of the <a href="http://codeigniter.com/user_guide/database/active_record.html#insert">Active Record Insert Syntax</a>, I might write PHP code like this&#8230;</p>
<p>[php]<br />
&#8230;<br />
$contact = $_POST['contact'];<br />
$this->db->insert(&#8220;contacts&#8221;, $contact);<br />
&#8230;<br />
[/php]</p>
<p>When I started to use jQuery to do some client side javascript validation on my forms it was not immediately obvious to me that I needed to <strong>escape the square brackets</strong> in the jQuery calls.</p>
<p>[javascript]<br />
<script language="javascript">
  $(document).ready(function() {
    alert($('contact\\[first_name\\]).val());
  });
</script><br />
[/javascript]</p>
<p>Due to javascript&#8217;s encoding, you need to use <strong>double slashes</strong> &#8211; not just a single slash &#8211; to escape the square brackets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ecommerce with CodeIgniter</title>
		<link>http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/</link>
		<comments>http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/#comments</comments>
		<pubDate>Thu, 15 May 2008 23:06:00 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/</guid>
		<description><![CDATA[Ironically the Zend Framework is marketed with the phrase &#8220;Extreme Simplicity &#38; Productivity&#8221;. I have developed a few sites with it now and I find it to be anything but simple and productive. It&#8217;s complicated, has a steep learning curve, and (in my opinion) needs a lot more work. I realize that I&#8217;m coming from [...]]]></description>
			<content:encoded><![CDATA[<p>Ironically the Zend Framework is marketed with the phrase &#8220;Extreme Simplicity &#38; Productivity&#8221;. I have developed a few sites with it now and I find it to be anything but simple and productive. It&#8217;s complicated, has a steep learning curve, and (in my opinion) needs a lot more work. I realize that I&#8217;m coming from a RoR background and that is a lot for a <span class="caps">PHP</span> framework to try to match. Nevertheless, I am quitting all Zend Framework development until more work can be done on the framework. Then, maybe I&#8217;ll reconsider.</p>
<p>I have found <a href="http://www.codeigniter.com">CodeIgniter</a> and have now built 3 sites with it. It&#8217;s simple, easy to use, speeds up development, has great documentation and, best of all, has won me as a fan. My most recent CodeIgniter project is an educational/e-commerce site about <a href="http://www.g-forcehealth.com">Rebounding with the Cellerciser</a> While developing the site and reading the site content, I was convinced of the many <a href="http://www.g-forcehealth.com/site/why-cellercise">reasons to use a Cellerciser</a> I&#8217;ve now been using a Cellerciser for about 3 months and I love this thing!</p>
<p><span id="more-22"></span></p>
<p>All this is to say that I&#8217;m developing with CodeIgniter now and I&#8217;m customizing my development for <span class="caps">PHP5</span>. Even though CodeIgniter is not strictly a <span class="caps">PHP5</span> framework (it will run under <span class="caps">PHP4</span> or <span class="caps">PHP5</span>) it does try to detect if it&#8217;s being run under <span class="caps">PHP5</span> and has several chunksk of <span class="caps">PHP5</span> specific code that get loaded if you are using <span class="caps">PHP5</span>. Then, you can code your own models and libraries using strict <span class="caps">PHP5</span> syntax &#8211; taking advantage of all the goodness that <span class="caps">PHP5</span> brings to the table.</p>
<p>I took a day or two to look into <a href="http://kohanaphp.com/home.html">Kohana</a> which is basically the <span class="caps">PHP5</span> only version of CodeIgniter. Kohana, being pure <span class="caps">PHP5</span>, has a few advantages over CodeIgniter. Here is <a href="http://thislab.com/2008/02/23/notes-on-choosing-a-php-framework-a-quick-comparison-of-codeigniter-and-kohana/">a great reivew comparing Kohana and CodeIgniter</a> In the review there are also a few tips on integrating the Zend Framework in with you CodeIgniter project &#8211; a much better use of the Zend Framework than building exclusively upon it.</p>
<p>Even though I exclusively use <span class="caps">PHP5</span> and Kohana takes much better advantage of <span class="caps">PHP5</span> than CodeIgniter does, I ended up sticking with CodeIgniter for the following reasons:</p>
<ul>
<li>Better documentation (although Kohana&#8217;s is very good too)</li>
<li>I felt like CodeIgniter had a more secure and substantial user base</li>
<li>Kohana does not have any unit testing (but it is coming in the next release)</li>
<li>More add-ons (ignited code) for CodeIgniter adding any &#8220;missing&#8221; feature you can think of</li>
</ul>
<p>My biggest complaint with CodeIgniter is the session handling. Session data is stored on the client side in a cookie. So you are limitted to 4kb of data. I prefer to store session data on the server side in a database. There are several add-ons for CodeIgniter that give you server side, database storage for session data.</p>
<p>If you have any questions about CodeIgniter, or comments about CodeIgniter vs Kohana, please feel free to share your thoughts!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
