Ian Warner

Social / Mobile Application Zend Framework PHP Developer

Browsing Posts published by Ian Warner

Just a little script to make GIT control a little easier.
continue reading…

Below are common commands for the GIT repository tool.
continue reading…

Basically with Zend DB you should cache the MetaData lookup, as this can be an expensive process.

Firstly in your application.ini you should have already set up your Cache settings, I now use the cachemanager default resource plugin provided by Zend

continue reading…

CodeBlender Debug is a Zend Framework in-line information bar. Giving reporting on things such as memory and variables.

CodeBlender Debug

CodeBlender Debug

continue reading…

Just wanted to place this often utilised snippet on my Blog, as I often forget the syntax!

To disable the rendering of the View use:
$this->_helper->viewRenderer->setNoRender();

To disable the layout use:
$this->_helper->layout->disableLayout();

If you are like me and often forget what Log files records what, and the commands to easily interrogate them, then hopefully this post will shed some light.
continue reading…

Zend Framework comes with a standard set of filter classes. But if you are like me I always forget what is available. The documentation has a not easy to read list of these classes; it is necessary to scroll through the page and identify these.

So I wanted to create a simple list of these, the full documentation can be found here: Zend Filter Set
continue reading…

Zend Framework comes with a standard set of validation classes. But if you are like me I always forget what is available. The documentation has not easy to read list of these classes; it is necessary to scroll through the page and then identify these.

So I wanted to create a simple list of these, the full documentation can be found here: Zend Validate Set
continue reading…

Zend Framework function to check if a class is accessible.


// Check to see if there is a Comment Model
if (Zend_Loader_Autoloader::autoload('Default_Model_DBTable_Comment')) {

    // Save the comment into the database
    $table = new Default_Model_DBTable_Comment();
    $table->insert($data);

} else {
    echo 'NO WAY';
}

Very useful when trying to create a modular site system. This way we can determine for instance if a site should have the ability to log questions posted on the contact page or not, based on whether they have the model available to handle the transactions.

Obvious overhead in if_file_exists calls made.