PHP Hints

August 9, 2011

Bisna: Integrating Zend Framework and Doctrine 2 ORM

Filed under: Uncategorized — kkruecke @ 8:29 am

Guilherme Blanco’s Bisna package integrates Doctrine 2 and Zend Framework 1 using a custom Zend Framework application resource plug: Bisna\Application\Resource\Doctrine

(more…)

July 10, 2011

June 29, 2011

Pear on XAMPP

Filed under: Doctrine ORM,PEAR,XAMPP — kkruecke @ 1:24 pm
Tags: , , , ,

These are the steps I following to get the pear command line utility pear.bat working under xampp for windows.
(more…)

May 9, 2011

Configuring XAMPP for virtual hosts

Filed under: Uncategorized — kkruecke @ 6:57 pm

How to Setup Virtual Hosts on XAMPP explains how.

Be sure to also add the section for localhost, as explained in the article; otherwise you won’t be able to access htt://localhost, which is the XAMPP start page.

November 11, 2010

Doctrine 2 ORM Cookbook example

Filed under: Doctrine ORM,PHP Code — kkruecke @ 2:39 pm
Tags: , , ,

The first portion of the Doctrine 2 ORM Cookbook example is available on sourceforge. See the included README.txt.

(more…)

October 28, 2010

cli-config.php for Doctrine 2 ORM

Filed under: Doctrine ORM — kkruecke @ 12:04 am
Tags: , , , ,

This article shows how to set up cli-config.php for use with the Doctrine 2 command line utility, doctrine. It assumes you installed Doctrine 2 using pear.
(more…)

August 18, 2010

_forward _redirect and redirector action helper

Filed under: Zend Framework — kkruecke @ 3:08 pm
Tags: , ,

What is the different between _forward, _redirect and the various Redirector action helper’s methods?

1. Zend_Controller_Action::_forward($action, $controller = null, $module = null, array $params = null)

What does _forward do? The dispatch loop order for a request (see this illustration of the request dispatch cycle):

preDispatch()
someAction()
postDispatch()

(more…)

July 27, 2010

Zend Form Element Decorators

This UML illustrates how Zend Framework employs decorators to tailor the appearance of individual Zend_Form_Elements.

(more…)

June 28, 2010

local variables don’t display in Netbeans with php 5.3.2 and xdebug 2.0.5

Filed under: PHP IDEs,Ubuntu — kkruecke @ 9:43 pm
Tags: , , , ,

After upgrading Ubuntu from Karmic to Lucid, local variables no longer display in Netbeans while debugging. The problem is due to an incompatibility between xdebug 2.0.5 and php5.3.2, as this article shows.
(more…)

June 25, 2010

Zend Framework findDependentRowset() and findParentRow() demo

This is a working example of the Zend_Db_Table_Row methods findDependRowset() and findParentrow(). Create the test database using this sample.sql:
(more…)

Next Page »

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.