Saturday, December 8, 2007

Setting Up PHPUnit

I've put off setting up unit tests for my code far too long. I am ashamed. I've set aside this entire month to do all these things that appear like luxuries to non-developers, even though they're really essential.

For those of you who haven't been following, this is a Windows installation. I'm attempting to install the latest and greatest PHPUnit3 (3.2.4 at the time of this writing). It seems that either no one cares about doing this on Windows or only really smart people who find it so simple that they didn't bother to write about it have ever done it. Because half way through writing this (after publishing it half-done), I searched for "installing phpunit on windows" and this very blog article came up on the 2nd page.



Nice going Google, but not very helpful.

Quick Summary


For the impatient, here's a quick summary of what I had to do. Afterwards is the detailed story of how I got to this. I assume you already have PHP installed in C:\php.
  1. C:\php>go-pear.bat
  2. Merge C:\php\PEAR_ENV.reg
  3. C:\php>pear channel-discover pear.phpunit.de
  4. Change memory_limit in php.ini to something high like 64M. (Remember the old setting.)
  5. Save php.ini. Restart Apache.
  6. C:\php>pear install --alldeps phpunit/PHPUnit
  7. Change memory_limit in php.ini back to what it was before. (The default is 8M I think.)
  8. Save php.ini. Restart Apache.

Detailed Story


Now for the detailed story of how I got to the above steps.
  1. Install PEAR
    I currently have PHP 5.2.3 installed, and I installed PEAR on 8 December 2007 getting the following output accepting the default options.
    C:\php>go-pear.bat

    Are you installing a system-wide PEAR or a local copy?
    (system|local) [system] : system

    Below is a suggested file layout for your new PEAR installation. To
    change individual locations, type the number in front of the
    directory. Type 'all' to change all of them or simply press Enter to
    accept these locations.

    1. Installation base ($prefix) : C:\php
    2. Temporary directory for processing : C:\php\tmp
    3. Temporary directory for downloads : C:\php\tmp
    4. Binaries directory : C:\php
    5. PHP code directory ($php_dir) : C:\php\pear
    6. Documentation directory : C:\php\pear\docs
    7. Data directory : C:\php\pear\data
    8. Tests directory : C:\php\pear\tests
    9. Name of configuration file : C:\WINDOWS\pear.ini
    10. Path to CLI php.exe : C:\php\.

    1-10, 'all' or Enter to continue:
    Beginning install...
    Configuration written to C:\WINDOWS\pear.ini...
    Initialized registry...
    Preparing to install...
    installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar...
    installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.2.tar...

    installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.5.4.tar...
    installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar...
    pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
    install ok: channel://pear.php.net/Archive_Tar-1.3.2
    install ok: channel://pear.php.net/Console_Getopt-1.2.2
    install ok: channel://pear.php.net/Structures_Graph-1.0.2
    install ok: channel://pear.php.net/PEAR-1.5.4
    PEAR: Optional feature webinstaller available (PEAR's web-based installer)
    PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
    PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)

    PEAR: To install optional features use "pear install pear/PEAR#featurename"

    ******************************************************************************
    WARNING! The include_path defined in the currently used php.ini does not
    contain the PEAR PHP directory you just specified:
    <C:\php\pear>
    If the specified directory is also not in the include_path used by
    your scripts, you will have problems getting any PEAR packages working.


    Would you like to alter php.ini <C:\php\php.ini>? [Y/n] : Y

    php.ini <C:\php\php.ini> include_path updated.

    Current include path : .
    Configured directory : C:\php\pear
    Currently used php.ini (guess) : C:\php\php.ini
    Press Enter to continue:

    ** WARNING! Old version found at C:\php, please remove it or be sure to use the
    new c:\php\pear.bat command

    The 'pear' command is now at your service at c:\php\pear.bat


    * WINDOWS ENVIRONMENT VARIABLES *
    For convenience, a REG file is available under C:\php\PEAR_ENV.reg .
    This file creates ENV variables for the current user.

    Double-click this file to add it to the current user registry.

    Press any key to continue . . .

    C:\php>

    I then merged the PEAR_ENV.reg file as specified.

    You should make sure that running pear at the command-line dumps a list of commands.
  2. Install PHPUnit
    C:\php>pear channel-discover pear.phpunit.de
    Adding Channel "pear.phpunit.de" succeeded
    Discovery of channel "pear.phpunit.de" succeeded

    C:\php>pear install phpunit/PHPUnit
    Did not download optional dependencies: pear/Image_GraphViz, pear/Log, use --alldeps to download automatically
    phpunit/PHPUnit can optionally use package "pear/Image_GraphViz" (version >= 1.2.1)
    phpunit/PHPUnit can optionally use package "pear/Log"
    phpunit/PHPUnit can optionally use PHP extension "pdo_sqlite"
    phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.0)
    downloading PHPUnit-3.2.4.tgz ...
    Starting to download PHPUnit-3.2.4.tgz (198,003 bytes)
    .........................................done: 198,003 bytes

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 73 bytes) in C:\php\PEAR\PEAR\PackageFile\v2\Validator.php on line 1021

    C:\php>

    Now what?
    Did it seriously run out of memory?
    ...I'll finish this post another day (tomorrow?), and hopefully I'll figure it out.

    ::day passes::

    ...Okay, I'm back. After checking my php.ini file, I found that the memory limit was indeed 8M. So I changed
    memory_limit = 8M
    to
    memory_limit = 64M

    Save, and restart Apache (necessary if you're running PHP as a module).

    This time I decided to use the --alldeps option as indicated by my last run. If PHPUnit can use GraphViz to make pretty output, that would be great. So here goes another shot.
    C:\php>pear install --alldeps phpunit/PHPUnit
    WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
    phpunit/PHPUnit can optionally use PHP extension "pdo_sqlite"
    phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.0)
    pear/Log can optionally use PHP extension "sqlite"
    downloading PHPUnit-3.2.4.tgz ...
    Starting to download PHPUnit-3.2.4.tgz (198,003 bytes)
    .........................................done: 198,003 bytes
    downloading Image_GraphViz-1.2.1.tgz ...
    Starting to download Image_GraphViz-1.2.1.tgz (4,872 bytes)
    ...done: 4,872 bytes
    downloading Log-1.9.11.tgz ...
    Starting to download Log-1.9.11.tgz (38,479 bytes)
    ...done: 38,479 bytes
    downloading DB-1.7.13.tgz ...
    Starting to download DB-1.7.13.tgz (132,246 bytes)
    ...done: 132,246 bytes
    downloading MDB2-2.4.1.tgz ...
    Starting to download MDB2-2.4.1.tgz (119,790 bytes)
    ...done: 119,790 bytes
    install ok: channel://pear.phpunit.de/PHPUnit-3.2.4
    install ok: channel://pear.php.net/Image_GraphViz-1.2.1
    install ok: channel://pear.php.net/Log-1.9.11
    install ok: channel://pear.php.net/DB-1.7.13
    install ok: channel://pear.php.net/MDB2-2.4.1
    MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2)
    MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2)
    MDB2: Optional feature mysql available (MySQL driver for MDB2)
    MDB2: Optional feature mysqli available (MySQLi driver for MDB2)
    MDB2: Optional feature mssql available (MS SQL Server driver for MDB2)
    MDB2: Optional feature oci8 available (Oracle driver for MDB2)
    MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2)
    MDB2: Optional feature querysim available (Querysim driver for MDB2)
    MDB2: Optional feature sqlite available (SQLite2 driver for MDB2)
    To install use "pear install pear/MDB2#featurename"

    C:\php>

    It looks like it worked. :-)

    Run phpunit at the command-line to test that it worked. You should get a version and usage message dumped.

    Change the memory limit back to 8M. Save, restart.
  3. Test the Test Framework
    To further test that my installation was actually working, I made a dummy test that always fails. Like so...
    <?php
    require_once 'PHPUnit/Framework.php';

    class DummyTest extends PHPUnit_Framework_TestCase {

    public function testFail() {
    $this->fail('Your test successfully failed!');
    }

    }

    ...and put it in my C:\ root directory as DummyTest.php. This way I can make sure my path is setup correctly to use PHPUnit from anywhere.

    Sure enough, I get some good test-output.
    C:\>phpunit DummyTest
    PHPUnit 3.2.4 by Sebastian Bergmann.

    F

    Time: 0 seconds

    There was 1 failure:

    1) testFail(DummyTest)
    Your test successfully failed!
    C:\DummyTest.php:7

    FAILURES!
    Tests: 1, Failures: 1.

    C:\>


That's it! I hope this is helpful to someone.

Updated ZF .htaccess

A while back, I talked about how to setup a bootstrap on Apache to use with ZF. Since then, I've made a few modifications to my .htaccess file that I think are worth documenting.

First of all, I ran into a problem where flash files were referencing other binary files (.swf and .flv) relatively. But with ZF's URL rewriting, this was getting totally messed up, and only certain components of Flash objects were showing up. The fix I needed was in the .htaccess RewriteRules. The new rules I have are like so.

RewriteEngine on
RewriteBase /

RewriteRule !\.(js|ico|gif|jpg|png|css|flv|swf)$ index.php

Of course, if I had read the updated ZF documentation, I would have already known that.

Another "fix" I've used in my .htaccess file has to do with caching. Back in the day when websites were static, site-wide .css files were great. Not only did it allow for updating the entire site in one place, but it allowed browsers to cache the CSS so downloading pages that used it was even faster.

Problem: What if you add a feature to your site which requires new style rules. Since browsers have cached the .css file, any updates to it won't be seen until either the browser decides to refresh its cache or the user specifically Refreshes. Having that designer blood in me, I just can't stand the thought that some people will view that new feature without having the styles for it.

I came up with a bunch of ways to fix this, and they all suck in one way or another. One method that is particularly appealing to me as a programmer is to ditch browser-level caching by making everything a page style (in a style tag in the head of every page). This way, when a browser gets updates to a page, it will also get the updates to the CSS, and they will always be in sync. If you want to keep the ability to change one thing and change the whole site, simply move common CSS rules into a separate file which is included by your PHP.

The way we ended up doing it though — since my designer wanted to avoid PHP as much as possible — was with a .htaccess modification. The idea was that we wanted to disable browser-level caching of .css files. So I added the following to our .htaccess file which tells browsers to only cache .css files for 5 minutes.

<IfModule mod_headers.c>

# Cache library files for 5 minutes
<FilesMatch "\.css$">
Header set Cache-Control "max-age=300"
</FilesMatch>

</IfModule>

The nice thing about this is Apache simply adds a header to all your .css files without you having to modify anything in your code.

Peculiar Workarounds

I just wanted to capture some miscellaneous workarounds that I've had to use while creating a site in PHP on a shared host.

For now, I've just been using a shared Linux hosting plan. (BTW, don't ever use 1&1! Besides being terribly slow and going down randomly for hours in the middle of the day, their support is just atrocious. I once had a problem scheduling cron jobs, so I decided to email them for help. Their reply was of no use. I ended up figuring it out on my own though, so I sent another email to them to tell them how I solved the problem — the crontab file needed a newline at the end. They completely didn't get what I was saying and acted as if I was still having a problem.)

And on this shared host, PHP5 is run as a cgi. Running phpinfo(), I found that in order to modify the php.ini settings, you had to include the php.ini file in every directory. (Be careful. A php.ini file overrides all settings, and defaults are used for unspecified settings. It doesn't extend the current settings.) So I made a script that copies the php.ini file I made into every subdirectory.

An alternative if you're using a bootstrap file, is to set the ini settings programmatically in the bootstrap using ini-set.

Another peculiar problem I found on this shared host using the Zend Framework had something to do with the rewriting of URLs. When I had a controller named Posts and tried to go to a URL like /posts/view, it would work perfectly on my server but would give a 404 on the shared host. I actually already mentioned this at the end of another post, but I thought it should be pointed out because I just know this is the kind of thing I will forget about and spend hours trying to fix again.

The workaround I found was to create a dummy directory called posts (or whatever your controller is named) and duplicate the RewriteRules in a .htaccess file in that directory. In other words, something like this:
RewriteEngine on
RewriteBase /

RewriteRule !\.(js|ico|gif|jpg|png|css|flv|swf)$ index.php

I think it had something to do with the fact that I was using Apache 2.0 while the shared host was using 1.x. On the shared host, it was looking for a directory called posts instead of using the RewriteRules in the .htaccess file in the web root directory.

Monday, January 29, 2007

Zend Framework Overview

Bootstrapping

All requests are sent to a single application entry-point. The bootstrap file loads classes and libraries common to all pages on the site. It then does things that need to be done for every request like setting up the database with Zend_Db or loading permission rules via Zend_Acl or starting the session with Zend_Session. It then creates an instance of the Zend_Controller_Front class which is used to dispatch the request to the correct controller and return the response to the client.

For objects that may need to be accessed by controllers or other classes after dispatching, a registry has been created. The bootstrap file can create objects with complicated initialization, possibly utilizing config files, and store these objects in the registry with the Zend::register function. Values can then simply be pulled out of this at will with the Zend::registry function. The advantage of using this over globals is that it is clear whenever you are accessing a shared variable, which can be especially important with PHP's lack of variable declaration. (Although, if you stick to an all-object-oriented design, this might not be a problem.) Additionally, the Zend_Registry class can be subclassed, allowing for exotic data structures, logging of registry use, persistence, etc.
// Create the view and store it for later use.
$view = new Zend_View();
$view->setScriptPath('./application/views');
Zend::register('view', $view);

Controllers and Actions

Every valid URI must have a corresponding action that is executed when it is requested. If the router does not find one, an exception is thrown — either an instance of Zend_Exception or one of its subclasses like Zend_Controller_Exception. The current default router, implemented in the Zend_Controller_Router class, matches URIs against the pattern "/controller/action/param1/value1/param2/value2". There can be zero or arbitrarily many parameters. If the action is omitted, it defaults to the index action, and if the controller is omitted, it defaults to the index controller. The parameters are stored in an array that can be accessed via the _getParam or _getAllParams methods of the Zend_Controller_Action class, the class which all controllers must subclass. Trailing slashes are ignored, mapping to identical actions with identical parameters.

To map a URI to an action method, first create the controller class by postfixing its name with "Controller" and extending Zend_Controller_Action. In this class, any method named with the postfix "Action" will be mapped to a URI. For example, to create a handler for the URI "/" — which gets routed to the index action of the index controller — we need a class named IndexController that extends Zend_Controller_Action, with a method named indexAction. In order for the framework to load this class automatically, put this class definition in a file named IndexController.php your controller directory — /webroot/application/controllers/ if you're using the standard bootstrap file I described.
<?php

class IndexController extends Zend_Controller_Action
{
// Handles "/", "/index", "/index/", "/index/index", "/index/index/"
public function indexAction()
{
}

// Handles "/index/foo", "/index/foo/"
public function fooAction()
{
}
}
Regardless of how many parameters are expected, action methods are always called with zero parameters. But parameters specified in the URI can be accessed with _getParam and the like. For example, if /index/index/param1/value1/ were requested, $this->_getParam('param1') in the indexAction method would return 'value1'.

To handle the URI /downloads/list, create a file named DownloadsController.php in the controllers directory. Make a class named DownloadsController extending Zend_Controller_Action, and in it, create a method named listAction.
<?php

class DownloadsController extends Zend_Controller_Action
{
// Handles "/downloads/list", "/downloads/list/"
public function listAction()
{
}
}

When you echo or print in an action method, the output is sent in the body of the response to the client. The Zend_Controller_Response_Abstract class was created to abstract over this and allow for easy switching between output formats, say, from XML to JSON. The interface though is a little annoying since
echo coolStuffToOutput($howCool);
becomes
$this->getResponse()->appendBody(coolStuffToOutput($howCool));
which is much clumsier. One might argue that this method of outputting shouldn't be used often anyway since most output will be part of a template and output using a view.

Saturday, January 27, 2007

Setting Up the Zend Framework

Setting up the Zend Framework is easy even on shared hosts since no binaries need to be installed. But if you don't know the intricacies of Apache and PHP, certain requests can fail to work for seemingly no apparent reason.

I originally learned from an older version of a tutorial called Getting Started with the Zend Framework [pdf] from Akra's DevNotes, so I will follow his lead with a few stylistic choices. You may want to check out that tutorial or a newer version of it if it's out.

This is just a bare-bones setup. Nothing fancy. No databases, forms, etc. Just "hello world" to get you started. You'll want to get this working before moving on, of course.
  1. Zend Library
    I'm using version 0.7.0. Unzip ZF and copy the library directory (ZendFramework-0.7.0/library/) into your webroot so that you have /webroot/library/. This directory should contain Zend.php and a Zend subdirectory. This is really all you need to start using Zend, but there are a few standard things that still need to be done for a website.
  2. PHP Config
    You'll want to make sure the following two php.ini settings are set.
    register_globals = Off
    magic_quotes_gpc = Off


    If you're using PHP as an Apache module, remember to restart Apache for changes to take effect.
  3. Apache Config
    Right now, anyone can navigate to or request a file in your library directory. To prevent this, use a .htaccess file in the library directory, /webroot/library/, with the following directive. You will also want to copy this into your application directory, /webroot/application/, where you store all your application-specific MVC files.
    deny from all
  4. Bootstrapping
    Bootstrapping allows all URL requests to be processed through a single entry-point, called the bootstrap file. This way, URLs can be mapped to controller actions. In /webroot/.htaccess, add the following lines which internally redirect all URLs to the index.php file.
    RewriteEngine on
    RewriteBase /
    RewriteRule .* index.php


    However, certain files like client scripts, style sheets, and images should be served as normal without involving the framework. So in your public directory, /webroot/public/, where such files are stored, add the following in another .htaccess file.
    RewriteEngine off

    If you're using phpMyAdmin in a subdirectory on a local server, you'll want to do the same for that directory to serve files as usual.

    Now /webroot/index.php is the bootstrap file and the entry-point for all requests, besides in the /webroot/public/ directory.
  5. Standard Bootstrap File and Dispatching
    The following is a bare-bones bootstrap file that uses standard routing. Put this in /webroot/index.php.
    <?php
    error_reporting(E_ALL|E_STRICT);
    date_default_timezone_set('America/New_York');

    // Load Zend.
    set_include_path('.' . PATH_SEPARATOR . './library'
    . PATH_SEPARATOR . './application/models/'
    . PATH_SEPARATOR . get_include_path());
    include 'Zend.php';

    // Load classes used on all requests.
    Zend::loadClass('Zend_Controller_Front');

    // Setup controller.
    $frontController = Zend_Controller_Front::getInstance();
    $frontController->setControllerDirectory('./application/controllers');

    // Turn on display of exceptions.
    $frontController->throwExceptions(true);

    // Dispatch and run.
    $frontController->dispatch();
    Leaving out the closing ?> is intentional since including it in pure PHP files can lead to unwanted output and hard-to-detect bugs.
  6. Index Controller and Standard Routing
    To set up a simple index page, create a new file /webroot/application/controllers/IndexController.php and add the following.
    <?php

    class IndexController extends Zend_Controller_Action
    {
    function indexAction()
    {
    echo '<p>in IndexController::indexAction()</p>';
    }

    function fooAction()
    {
    echo '<p>in IndexController::fooAction()</p>';
    }
    }

    Now, visiting http://hostname/ should display a page with "in IndexController::indexAction()", and visiting http://hostname/index/foo/ should display a page with "in IndexController::fooAction()". Of course, due to the way the default router works, all the following URLs display the same thing.
    http://hostname/
    http://hostname/index
    http://hostname/index/
    http://hostname/index/index
    http://hostname/index/index/
    The default router looks at a URI and matches against the pattern /controller/action/param1/value1/param2/value2. http://hostname/ defaults to the index action of the index controller, which will be identical to http://hostname/index/index. This is also identical to http://hostname/index/index/ because the default router trims leading and trailing slashes. (Curiously, http://hostname/index returns a 400 Bad Request error on my shared hosting site; I'm not sure why. I never noticed this before.)

    If you're having the problem of navigating to http://hostname/index/index failing (returning a 404) even when http://hostname/ works — a problem I ran in to working on a shared host — you must make a dummy /webroot/index/ directory with a .htaccess file telling Apache to use the rewrite router. In other words, create the directory /webroot/index/, and copy /webroot/.htaccess into it. This must be done for each subdirectory (equivalently, each controller) that you wish to have. So if you want /downloads/ to be a valid URI, you must make a /webroot/downloads/ directory. If you want /archives/ to be a valid URI, you must make a /webroot/archives/ directory, and so on. Each with the .htaccess file specifying the RewriteRule. The cause for this has to do with Apache's configuration. However, I haven't been able to determine the exact reason since the shared host I'm using does not allow access to the config file.

Setting Up a Local Server

I've always found it to be helpful to have a local server, duplicating the production server as close as possible, while developing. This saves you from having to upload changes every two seconds.

I've set up phpMyAdmin/PHP/MySQL/Apache on Windows a few times. And I'm just now getting to the point where I don't get stuck somewhere along the line.

I know what you're thinking — not another tutorial on installing PHP/MySQL/Apache. But I bet none of the ones out there were geared towards setting up a server for the Zend Framework.
  1. Apache
    I'm using version 2.0.58. Make sure to test that this works alone before moving on.
  2. MySQL
    I'm using version 5.0.21.
  3. PHP
    I'm using version 5.2.0. Use the zip package, not the installation program. The installer doesn't include certain extensions. Unzip it to C:\php\. You could choose another directory, but I have avoided the Program Files directory since spaces in paths have been known to cause problems with some programs.

    Add PHP to your Apache config file. In Apache 2 using PHP as a module, it's as follows, assuming you unzipped PHP into C:\php\.
    LoadModule php5_module "C:/php/php5apache2.dll"

    If you're using the Apache module for PHP, you can set the following in the Apache config file to specify the directory where the php.ini file is. This is better than having to place it in the Windows directory.
    PHPIniDir "C:/php"

    Using the framework, you also want to load the rewrite module so that all requests can be sent to a bootstrap file. So make sure to uncomment or include this.
    LoadModule rewrite_module modules/mod_rewrite.so

    Tell Apache to look for index.php, and not just index.html, when directories are requested. The index.html.var is only needed here if you're using content-negotiated documents. If you don't know what they are, you're probably not using them.
    DirectoryIndex index.html index.php index.html.var

    Set the MIME type for php files.
    AddType application/x-httpd-php .php

    Edit the php.ini file and make sure the extension directory is set to where your PHP extensions are located, usually C:\php\ext\.
    extension_dir = ".\ext"

    Uncomment the MySQL extension.
    extension=php_mysql.dll

    Also uncomment the multibyte string extension if you plan on using exotic character sets in your database. phpMyAdmin will cry if you don't enable this.
    extension=php_mbstring.dll

    For the Zend Framework, uncomment or add the following lines if not present. This enables the PHP Data Objects extension which Zend uses for accessing the database — in this case, MySQL.
    extension=php_pdo.dll
    extension=php_pdo_mysql.dll


    While you're editing php.ini, turn off register_globals and magic_quotes. Turning off register globals is for safety, and turning off magic quotes reduces complication later when inserting data into the database. I have seen a ZF tutorial that states that turning off magic_quotes is required, but I haven't tested this.
    register_globals = Off
    magic_quotes_gpc = Off


    Remember to restart Apache to make configuration changes take effect. If you're using PHP as an Apache module, php.ini is only loaded once on startup. So changes to php.ini will not take effect until Apache restarts.
  4. phpMyAdmin
    I'm using version 2.8.0.3. phpMyAdmin won't work out of the box. There's a documentation.html file that explains (under the Quick Install section) creating a config file.

...More details on all this later. (I know what you're thinking... yeah, right.)

Scope

Here are the things I've been working on:
  • MySQL DB for persistence
  • Registration/Login
  • User-Uploaded Content
  • Permissions

Things I'm specifically not working on at the moment:
  • Performance Optimization
  • Internationalization

About

I've been using the Zend Framework since version 0.2.0. I had never used a web framework prior to that. The reason I chose Zend as opposed to other frameworks was its simplicity and intuitiveness. I admit, this conclusion may have only been drawn because of a well-written tutorial that clicked with me.

Nevertheless, I have been using the Zend framework to build a website and have been following the core classes as they've developed. As I ran in to problems, I looked for help on the web and found it lacking. So I decided to create what I wished to see.

Let's see how long this will last.