PHP

Zend Framework 2 Service Managers. Why?

I’m a ZF noob and was noticing that ZF OOP relies heavily on service managers rather than instantiating classes directly. This article explores why things are set up that way.

Dependency Injection

It seems like very PHP ZF2 blog has an article about Dependency Injection, so here's mine. I hope it's clear, or at least helps corroborate what you're reading on other sites.

Zend Framework 2 References Page

A bunch of useful references.

ZF2 @ Read The Docs

Class Autoloading, Namespaces, PSR-0 and Acting Like Java

One of the surprises of ZF2 is that the preamble to the code looks like this:

namespace Album\Model;

use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;

Zend Framework 2 Notebook

I was getting ready to dump PHP and move on to an all-JS, or maybe try really using Haskell or back to C again (or C++ or even Java), but there's just a ton of demand for PHP.

RIP Slaptech Framework

Slaptech framework was a PHP 4 based framework that never got released into the public, that we built to do projects.

How to use Tags or Ctags to Browser Code with Vim

This is a short tutorial about using ctags (or exuberant ctags) to work with the vim editor to give you a great code browser.

Templating with DOM

DOMTemplate is a new templating system that doesn't use any markup.

PHP DOM to Implement a Form Class with Pure HTML Templates

So, I had this painful gout attack today and was mostly bedridden. It sucked. But I got some reading done, which was nice. My mind wandered and came up with this idea (and a headache).

Languages, IMC Keywords, Zend Framework, and Bad Data (random caffeinated thoughts)

I'm getting back to setting up Drupal for LA IMC, but keep hitting little walls. I've decided I definitely want to extract proper nouns and keywords from the articles.

File Naming Anti-Pattern

Click this link to see why you should not name your PHP files *.inc.

I still see people naming their files "something.inc". The problem with doing that is the server won't interpret .inc files as PHP files. By default it treats them as text. So if you have your database password in a file named config.inc, it might accidentally get exposed.

Using PHP's ArrayObject to Implement a Primitive Data Tainting System for URI Parameters

[Turns out there's a PECL extension for tainting: http://www.php.net/manual/en/book.taint.php
So this article is already kind of obsolete.]

Comparison Shopping for Toilet Paper, in multiple computer languages.

It's hard to concentrate when you're tired and cranky, so I wasted some time writing a simple calculator in several different languages.

Heuristics are Nice : (working toward) Facebook-style Previews

I was thinking about how facebook updates parse out the url, then construct a nice looking preview. I think what it takes is scanning the textarea for a url, and then using ajax to tell the server to fetch a summary of the page at the url. get the data back, and insert it into a template, and reveal it.

Reused a Variable Name

I accidentally reused the variable name $count twice in a function.

.

Donate Bitcoin to support the writer: 1F13NCPcFKjJ7oy36zc2vBTtqoQCBPpAPH

Comments are disabled

If you wish to comment, post this article on reddit or hacker news.

Syndicate content