<?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 17:12:54 -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[Wokay.com: 12+ Tutorials for creating PHP5 MVC Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/17232</guid>
      <link>http://www.phpdeveloper.org/news/17232</link>
      <description><![CDATA[<p>
If you've ever wanted to start from scratch and wanted to build your own PHP framework, you might want to <a href="http://www.wokay.com/technology/12-tutorials-for-creating-php5-mvc-framework-56936.html">take a look at this list</a>. It's a set of thirteen good resources to help you get started and introduce you to some of the basic framework concepts.
</p>
<blockquote>
Frameworks serve as basics for developing a theory, condition and design in broader sense but in the world of web site development, framework means applications that help you in creating something new or something most popular around the web. We have listed top php framework tutorials for your convenience so that you can have a good idea of how to create a framework if you are not satisfied with one listed by us.
</blockquote>
<p>Tutorials in the list include:</p>
<ul>
<li>A <a href="http://net.tutsplus.com/tutorials/php/creating-a-php5-framework-part-1/">three-part series</a> on NetTuts.com
<li><a href="http://johnsquibb.com/tutorials">A Framework in an Hour</a>
<li><a href="http://net.tutsplus.com/tutorials/php/create-your-first-tiny-mvc-boilerplate-with-php/">Tiny MVC Boilerplate with PHP</a>
<li><a href="http://ndungi.kenya.or.ke/?p=38">Write your own PHP5 MVC framework</a>
</ul>]]></description>
      <pubDate>Thu, 08 Dec 2011 12:59:43 -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[Karsten Deubert's Blog: Zend_MVC, Controller Plugins and Annotations]]></title>
      <guid>http://www.phpdeveloper.org/news/17178</guid>
      <link>http://www.phpdeveloper.org/news/17178</link>
      <description><![CDATA[<p>
<i>Karsten Deubert</i> has a recent post to his blog looking at <a href="http://www.logaholic.de/2011/11/25/zend_mvc-controller-plugins-and-annotations/">annotations in Zend Framework applications</a> to enhance functionality already in the framework.
</p>
<blockquote>
Recently I had the idea to influence Controller Actions with annotations but discarded it with thoughts like "In PHP I will have to use reflection and some black magic to get this working which will have insane performance hits for my applications"... until I set everything up to see that it costs just 1-2ms in average per request without any form of caching.
</blockquote>
<p>
He includes a few bits of code to show a simple annotation example (setting a layout) and the controller plugin that performs the translation. In his case, it's hard-coded to look for the "@layout" annotation in the docblock comment, but it'd be relatively trivial to extend it to a more full-featured version.
</p>]]></description>
      <pubDate>Mon, 28 Nov 2011 12:02:50 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Reddit.com: Which MVC framework has the best documentation and user community?]]></title>
      <guid>http://www.phpdeveloper.org/news/16995</guid>
      <link>http://www.phpdeveloper.org/news/16995</link>
      <description><![CDATA[<p>
On Reddit.com there's a new post that asks the question, "<a href="http://www.reddit.com/r/PHP/comments/lb25r/which_mvc_framework_has_the_best_documentation/">which framework has the best documentation and community</a>?" 
</p>
<blockquote>
About to dive into MVC and wondering which one has the most wealth in terms of documentation/code comments as well as a decent community.
</blockquote>
<p>Suggestions in the comments include both old and new options including:</p>
<ul>
<li><a href="http://symfony-project.org">Symfony</a>
<li><a href="http://codeigniter.com">CodeIgniter</a>
<li><a href="http://framework.zend.com">Zend Framework</a>
<li><a href="http://yiiframework.com">Yii</a>
</ul>]]></description>
      <pubDate>Fri, 14 Oct 2011 10:17:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tutorialzine.com: Building a Website with PHP, MySQL and jQuery Mobile, Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/16759</guid>
      <link>http://www.phpdeveloper.org/news/16759</link>
      <description><![CDATA[<p>
From Tutorialzine.com today, they've posted the <a href="http://tutorialzine.com/2011/08/jquery-mobile-product-website/">first part of a series</a> looking at the construction of a full mobile website using PHP, MySQL and jQuery mobile.
</p>
<blockquote>
In this two-part tutorial, we will be building a simple website with PHP and MySQL, using the Model-View-Controller (MVC) pattern. Finally, with the help of the <a href="http://jquerymobile.com/">jQuery Mobile framework</a>, we will turn it into a touch-friendly mobile website, that works on any device and screen size. In this first part, we concentrate on the backend, discussing the database and MVC organization. Next time, we will be writing the views and integrating jQuery Mobile.
</blockquote>
<p>
Their simple application lets you browse products in a storefront with products and their categories. They don't use any particular framework and instead opt for a "include all" approach in their example. This makes it simpler to bootstrap, but shouldn't be used in a production-ready version of the application. There's simple frameworks (like <a href="http://codeigniter.com">CodeIgniter</a> out there that can help take it to the next level without much more complexity). You can see a <a href="http://demo.tutorialzine.com/2011/08/jquery-mobile-product-website/">demo of it in action</a> or just <a href="http://demo.tutorialzine.com/2011/08/jquery-mobile-product-website/mobile-store.zip">download the source</a> to get started hacking.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 12:33:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[VideoPHPBlog.com: Create your own MVC]]></title>
      <guid>http://www.phpdeveloper.org/news/16561</guid>
      <link>http://www.phpdeveloper.org/news/16561</link>
      <description><![CDATA[<p>
On VideoPHPBlog.com they've posted about a screencast <a href="http://www.videophpblog.com/2011/07/06/create-your-own-mvc/">getting you familiar with MVC</a> and how to create a simple model/view/controller application in three parts.
</p>
<blockquote>
Beautiful new screen cast from <a href="http://jream.com/">#JREAM</a> about creating the base essentials of your own PHP MVC application.  High quality and good speaker.
</blockquote>
<p>
The tutorial starts with the basics - making a front controller, some simple routing and making a few controllers to handle the requests. With this base in place, he adds some handy features like default actions, bootstrapping, views (with some jQuery fuctionality), templating and adding models. The last part of the tutorial set includes setting up database connections, autoloading, session handling and user logins.
</p>
<p>
These are a great reference for anyone wanting to see first hand how an MVC application (framework) is structured. It doesn't follow some of the best practices it should, but it's a good example of how it all flows. Note: do not use the end result from these examples in production - there's <a href="http://framework.zend.com">lots</a> <a href="http://symfony.com">of</a> <a href="http://codeigniter.com">other</a> <a href="http://fuelphp.com">frameworks</a> for that.
</p>]]></description>
      <pubDate>Thu, 07 Jul 2011 10:42:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Create your First Tiny MVC Boilerplate with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15958</guid>
      <link>http://www.phpdeveloper.org/news/15958</link>
      <description><![CDATA[<p>
If you ever find yourself in need of a basic MVC structure for your application but don't want to get involved with a full framework to do it, you should try out <a href="http://net.tutsplus.com/tutorials/php/create-your-first-tiny-mvc-boilerplate-with-php/">this new screencast</a> from NetTuts.com. It shows you the creation of a simple "tiny MVC" implementation.
</p>
<blockquote>
It's important for me to note that I'm not advocating that you shouldn't use large frameworks. They absolutely have their places, and I use them often. That said, there are definitely times when they can be overkill for smaller projects. When your only requirement is code organization, it's typically better to scrape together your own MVC boilerplate.
</blockquote>
<p>
<a href="http://net.tutsplus.com/tutorials/php/create-your-first-tiny-mvc-boilerplate-with-php/">The screencast's</a> about 15 minutes long and it walks you through each step of the way - making the routing, setting up controller handling and working with views. For the impatient, you can also <a href="http://nettuts.s3.amazonaws.com/924_tinyMvc/tinyMvc.zip">download the source</a> and get started quickly.
</p>]]></description>
      <pubDate>Thu, 24 Feb 2011 12:20:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: ZendCon Sessions Episode 037: Why MVC is not an Application Architecture]]></title>
      <guid>http://www.phpdeveloper.org/news/15895</guid>
      <link>http://www.phpdeveloper.org/news/15895</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today they've published the latest of their "ZendCon Sessions" series of podcasts. In <a href="http://devzone.zend.com/article/12997-ZendCon-Sessions-Episode-037-Why-MVC-is-not-an-Application-Architecture">this latest episode</a> <i>Stefan Priebsch</i> talks about why MVC isn't actually an application architecture.
</p>
<blockquote>
Welcome to the ZendCon 2010 edition of the ZendCon Sessions. The <a href="http://devzone.zend.com/podcasts/zendconsessions">ZendCon Sessions</a> are live recordings of sessions that have been given at previous Zend Conferences. Combined with the slides, they can be the next best thing to having attended the conference itself. [...] This episode of The ZendCon Sessions was recorded live at <a href="http://zendcon.com/">ZendCon 2010</a> in Santa Clara, CA and features Stefan Priebsch giving his talk: "Why MVC is not an Application Architecture"
</blockquote>
<p>
You can either listen to this latest episode via the <a href="http://devzone.zend.com/article/12997-ZendCon-Sessions-Episode-037-Why-MVC-is-not-an-Application-Architecture">in-page player</a> or you can <a href="http://devzone.zend.com/content/audio/zendcon_sessions/zendcon_sessions_podcast_037.mp3">download the mp3</a> of the session to listen at your leisure. You can also see the slides <a href="http://www.slideshare.net/spriebsch/why-mvc-is-not-an-application-architecture-zendcon-2010">over on slideshare</a>.
</p>]]></description>
      <pubDate>Fri, 11 Feb 2011 12:51:23 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Simple Interfaces and Micro MVCs]]></title>
      <guid>http://www.phpdeveloper.org/news/15624</guid>
      <link>http://www.phpdeveloper.org/news/15624</link>
      <description><![CDATA[<p>
In <a href="http://weierophinney.net/matthew/archives/250-Simple-Interfaces-and-Micro-MVCs.html">a new post</a> to his blog today <i>Matthew Weier O'Phinney</i> takes a look at micro MVC frameworks and how, with just a bit of lightweight code and pieces of the Zend Framework, creating one is dead simple.
</p>
<blockquote>
My job is great: I get to play with technology and code most days. My job is also hard: how does one balance both functionality and usability in programming interfaces? [...] One interface I've been toying with is inspired by two very different sources. The first is PHP's own <a href="http://php.net/SoapServer">SoapServer API</a> (which we use already in our various server components); the other was a discussion I had with <a href="http://fabien.potencier.org/">Fabien Potencier</a> (of Symfony fame) a couple years ago, where he said the goal of Symfony 2 would be "to transform a request into a response." 
</blockquote>
<p>
The result is a simple Dispatachable interface that acts as the lowest level to build the whole MVC on top of. He illustrates with a micro MVC example that uses the Dispatchable interface to create a Dispatcher class to handle the incoming requests and attach various endpoints for handling. An example of it in use is also included.
</p>]]></description>
      <pubDate>Thu, 23 Dec 2010 09:29:07 -0600</pubDate>
    </item>
  </channel>
</rss>

