<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 12 Feb 2012 20:29:20 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Pagination with CodeIgniter]]></title>
      <guid>http://www.phpdeveloper.org/news/17465</guid>
      <link>http://www.phpdeveloper.org/news/17465</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing you how to <a href="http://phpmaster.com/pagination-with-codeigniter/">handle simple pagination</a> in a popular PHP framework, <a href="http://codeigniter.com">CodeIgniter</a>.
</p>
<blockquote>
Pagination is particularly useful when you are coding an application that interfaces with a database. A large dataset might have hundreds of possible results for one query, and pagination creates a much nicer user experience. In this tutorial, I'll use CodeIgniter's pagination library to show you how you can create a paginated list of results from a MySQL database. Along the way, you'll also see how to fix a problem with the pagination links that the library might produce.
</blockquote>
<p>
He starts on the backend,  creating a model to work with Country information and includes a "fetch_countries" method to grab the limited/paged list. Next up is the controller with an "example1" method that looks to the URL to see what page it should be on. The view is simple enough - just outputting the results back without worrying about how many to show.
</p>]]></description>
      <pubDate>Mon, 30 Jan 2012 12:15:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Reinheimer's Blog: The Danger of Hooks]]></title>
      <guid>http://www.phpdeveloper.org/news/17383</guid>
      <link>http://www.phpdeveloper.org/news/17383</link>
      <description><![CDATA[<p>
<i>Paul Reinheimer</i> has a recent post to his blog talking about <a href="http://blog.preinheimer.com/index.php?/archives/370-The-Danger-of-Hooks.html">the danger of "hooks"</a> in your development - the functionality several frameworks and other tools come with to allow you to add functionality to the core without having to change the main source.
</p>
<blockquote>
I ran into hooks rather simultaneously with two very different frameworks: Code Igniter and Lithium. In both cases I was using a rather nifty hook to handle ensuring that users were properly authenticated and authorized before accessing a page. [...] One day, while messing around, I accidentally turned off the hook configuration within Code Igniter (actually I clobbered a file, and restored the wrong one). Then, things came crashing down in a horrible cacophony of... actually they didn't. Everything kept working: that was the problem.
</blockquote>
<p>
He shows two solutions he came up with to be sure that his hooks were executed - one for Lithium and the other for CodeIgniter. The Lithium one uses a "_remap" method and the CodeIgniter example uses the magic "__invoke" method to check for an "AUTH_CHECKED" constant that's only defined as a part of his hooks.
</p>
<blockquote>
I'm no longer entirely dependent on one configuration option or file for my security to function. Should it fail, I've got a secondary check in place; this example of defence in depth allows me to be comfortable with the hooks security system once more.
</blockquote>]]></description>
      <pubDate>Thu, 12 Jan 2012 09:12:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kenny Katzgrau's Blog: The Top 10 CodeIgniter Sparks of 2011]]></title>
      <guid>http://www.phpdeveloper.org/news/17330</guid>
      <link>http://www.phpdeveloper.org/news/17330</link>
      <description><![CDATA[<p>
<i>Kenny Katzgrau</i> has a new post with the <a href="http://codefury.net/2011/12/top-10-codeigniter-sparks-of-2011/">top ten Sparks</a> (CodeIgniter packages) for the year of 2011:
</p>
<blockquote>
It's a moderately simple app that provides a vehicle for quickly dropping other developers' code in your codebase. Many of the packages on GetSparks are very well maintained. I am continually impressed by the amount of effort spark developers pour into their submissions when I peruse the site and try new packages out. [...] GetSparks has almost clocked 50,000 package downloads at this point, but there are handful of sparks that have really stood out in terms of popularity. 
</blockquote>
<p>
Packages in the top ten list by popularity include (in no particular order) <a href="http://getsparks.org/packages/php-activerecord/versions/HEAD/show">php-activerecord</a>, <a href="http://getsparks.org/packages/template/versions/HEAD/show">template</a>, <a href="http://getsparks.org/packages/gravatar_helper/versions/HEAD/show">gravatar_helper</a> and <a href="http://getsparks.org/packages/markdown/versions/HEAD/show">markdown</a>. He also thanks a few of the folks that have made the <a href="http://getsparks.org">GetSparks.org</a> site what it is.
</p>]]></description>
      <pubDate>Mon, 02 Jan 2012 09:32:53 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: CICONF '12 Speaker List]]></title>
      <guid>http://www.phpdeveloper.org/news/17255</guid>
      <link>http://www.phpdeveloper.org/news/17255</link>
      <description><![CDATA[<p>
The CICONF (CodeIgniter conference) group has <a href="http://www.ciconf.com/blog/2011/12/what-a-lineup">made a new post</a> about the lineup for their next event including people like <i>Adam Griffiths</i>, <i>Alex Bilbie</i>, <i>Alexis Serneels</i>, <i>Harrow "WanWizard" Verton</i>, <i>Nick Jackson</i> and <i>Tyler Flint</i>.
</p>
<blockquote>
The chances are if you are using a library, addon, Spark or tutorial for your CodeIgniter projects it will have been written by one of these guys. Adam Griffiths wrote the book, Alex Bilbie has made some amazing OAuth 2 and Mongo code, WanWizard wrote DataMapper ORM - the most popular ORM used with CodeIgniter - and I've [Phil Sturgeon] released a few blogs about CI over the years.
</blockquote>
<p>
They'll be doing the double-event conferences this year again - this time they'll be in London (February 18th-19th and San Francisco at a yet to be determined date). If you'd like to attend the London sessions, you can already <a href="http://www.ciconf.com/tickets">purchase your tickets</a> - a student pass for &pound;35 and a standard ticket for &pound;45.
</p>]]></description>
      <pubDate>Wed, 14 Dec 2011 08:31:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[CodeIgniter.com: PHP Framework Usage Survey]]></title>
      <guid>http://www.phpdeveloper.org/news/17245</guid>
      <link>http://www.phpdeveloper.org/news/17245</link>
      <description><![CDATA[<p>
As is mentioned on CodeIgniter.com, they've <a href="http://codeigniter.com/news/php_framework_usage_survey#When:21:02:18Z">set up</a> a survey to find out more information about how PHP <a href="https://www.surveymonkey.com/s/5H6C7Y7">are using frameworks</a>.
</p>
<blockquote>
The anonymous survey is very brief - just seven questions - and should take no more than five minutes or so to complete.  The survey is open immediately and will remain open over the weekend.
</blockquote>
<p>The seven questions on the survey include questions about framework usage, sets of how you feel about different framework-related topics, what editor you usually use (and for how long), how you usually interact with Git/Github. Go and <a href="https://www.surveymonkey.com/s/5H6C7Y7">voice your opinion now</a>!
</p>]]></description>
      <pubDate>Mon, 12 Dec 2011 12:34:10 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Untangling MVC with CodeIgniter]]></title>
      <guid>http://www.phpdeveloper.org/news/17231</guid>
      <link>http://www.phpdeveloper.org/news/17231</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial that wants to help you "untangle MVC" with the <a href="http://phpmaster.com/untangling-mvc-with-codeigniter/">help of the CodeIgniter framework</a>. The tutorial is an introduction to the Model/View/Controller design pattern and how it's implemented in this popular framework.
</p>
<blockquote>
If you want to develop applications with sell-structured, readable code that you can quickly diagnose problems in, then MVC is for you. In this article I'll untangle the mysteries of MVC for you using CodeIgniter, a PHP framework based on the MVC pattern. I'll first present a high level overview of MVC, what it is and how it can help you to become a better programmer, and then guide you through writing a simple web form the CodeIgniter way so you can see how the pattern looks in action.
</blockquote>
<p>
They briefly describe MVC (favoring instead for showing it later in the CodeIgniter examples) and help you get a copy of the framework installed. They show you how to create a first controller, the corresponding view and make a model that extends the base and inserts address information into a database table.
</p>]]></description>
      <pubDate>Thu, 08 Dec 2011 11:22:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Codeigniter and Object-Oriented PHP: Two Guides]]></title>
      <guid>http://www.phpdeveloper.org/news/17217</guid>
      <link>http://www.phpdeveloper.org/news/17217</link>
      <description><![CDATA[<p>
On DZone.com today <i>John Esposito</i> <a href="http://css.dzone.com/articles/codeigniter-and-object">points out two CodeIgniter tutorials</a> that can help you on your way to becoming a pro with this popular PHP framework.
</p>
<blockquote>
As Codeigniter builds on its (already considerable) popularity, now might be a good time to think about using the massively community-supported PHP framework to its maximum potential, if you aren't already. Here are two tutorials to check out, depending on your level of familiarity with object-oriented PHP and frameworks.
</blockquote>
<p>Here's the two he mentions:</p>
<ul>
<li><a href="http://www.jotorres.com/en/2011/11/codeigniter-for-the-absolute-beginner/">Codeigniter for the absolute beginner</a>
<li><a href="http://www.ibm.com/developerworks/opensource/library/os-codeigniter/index.html">Developing dynamic Web sites with CodeIgniter</a>
</ul>
<p>
The second tutorial is a little older, but the functionality of the framework hasn't changed dramatically since then so most of it should still apply.
</p>]]></description>
      <pubDate>Tue, 06 Dec 2011 09:56:46 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Easy Package Management for CodeIgniter with Sparks]]></title>
      <guid>http://www.phpdeveloper.org/news/17170</guid>
      <link>http://www.phpdeveloper.org/news/17170</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial showing off a package management system for the <a href="http://codeigniter.com">CodeIgniter</a> framework, Sparks, that makes <a href="http://net.tutsplus.com/tutorials/php/easy-package-management-for-codeigniter-with-sparks/">installing and using packages</a> similar to Ruby's gems.
</p>
<blockquote>
<a href="http://getsparks.org/">Sparks</a> is a new package-management system for CodeIgniter that extends the core with support for gem-like sparks. This tutorial interweaves an entry-level overview of the architecture and usage of the sparks system with the creation of dovecote-a simple spark for managing RSS data.
</blockquote>
<p>
The tutorial introduces you to the Sparks system and helps you get it installed and configured to work with a first basic package - a dovecote example. He helps organize and write the first spark as well as set up any dependencies and autoloading it might need. He follows this by adding some functionality to the package to make pushing output to the view simpler.
</p>
<p>
You can <a href="http://nettuts.s3.amazonaws.com/1092_sparks/source.zip">download the source</a> for the complete tutorial's code.
</p>]]></description>
      <pubDate>Fri, 25 Nov 2011 11:00:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[CodeIgniter.com: New User Guide in Development]]></title>
      <guid>http://www.phpdeveloper.org/news/16957</guid>
      <link>http://www.phpdeveloper.org/news/16957</link>
      <description><![CDATA[<p>
The CodeIgniter development team is happy to announce <a href="http://codeigniter.com/news/new_user_guide_in_development#When:19:23:01Z">work that's been done on the framework's user guide</a> to help make it even better and easier to find the information you're looking for (now based on the <a href="http://sphinx.pocoo.org/">Sphinx documentation generation engine</a>).
</p>
<blockquote>
In addition to handling the tedium of generating page and document tables of contents, or maintaining internal links and references, the documentation is now easier to write, as you can simply focus on the content instead of markup and presentation.  Don't forget syntax highlighting of PHP, HTML, CSS, and JavaScript in code samples.  Based on ReStructured Text, it's also more human readable in a text editor than HTML is, which is likely where you spend most of your time.  As an added benefit, Sphinx can output HTML, PDF, and even EPUB formats all from the same source files.
</blockquote>
<p>
There's also been a style redesign in the latest release (<a href="https://github.com/EllisLab/CodeIgniter/commit/8ede1a2ecbb62577afd32996956c5feaf7ddf9b6">here on github</a>) on the development branch of the framework. They warn of a few "bumps" that you might come across in using it, but they're working hard to take care of those quickly. If you'd like to see the new version, check out <a href="http://codeigniter.com/nightly_user_guide/">the nightly build results</a>.
</p>]]></description>
      <pubDate>Thu, 06 Oct 2011 09:55:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Phil Sturgeon's Blog: Managing CodeIgniter Packages with Git Submodules]]></title>
      <guid>http://www.phpdeveloper.org/news/16905</guid>
      <link>http://www.phpdeveloper.org/news/16905</link>
      <description><![CDATA[<p>
<i>Phil Sturgeon</i> has a new post to his blog today for the <a href="http://codeigniter.com">CodeIgniter</a> folks out there - a tip on keeping things organized by <a href="http://philsturgeon.co.uk/blog/2011/09/managing-codeigniter-packages-with-git-submodules">using git submodules for package management</a>.
</p>
<blockquote>
With CodeIgniter moving to GitHub we are starting to see a lot of CodeIgniter developers wanting to learn more about Git, specifically how they can use it to improve their workflows, manage their applications and move away from the horrible days of copying and pasting updated libraries off a wiki. UCK. Sparks are helping us on the whole, but there is another method that we can use to manage our packages: Git Submodules.
</blockquote>
<p>
Submodules allow you to pull in source from a remote repository without having to merge the code into your own. It creates a dependency between the two and makes it easier to check out only what you need. He gives the example of his <a href="https://github.com/philsturgeon/codeigniter-oauth2">oauth2 package</a> being needed in multiple other applications, so instead of including and checking in multiple versions, he made a separate repo and defined the source as a submodule. He also includes a bit about fixing issues in your submodules with a few handy commands to get on the right branch, add a remote and push the commit.
</p>]]></description>
      <pubDate>Mon, 26 Sep 2011 09:27:11 -0500</pubDate>
    </item>
  </channel>
</rss>

