Category Archives: Zend Framework

Zend Form – Validation Messages in Config

Zend Form default validation messages are often useless especially if those error messages are not displayed close to the form element. That’s why, as part of learning experience, I have automated the overriding of validations messages using a configuration file. … Continue reading

Posted in Zend Framework | Tagged , , , , , , , | 5 Comments

Dc Modeling For Zend Framework

For those adventurous and want to play with codes, I have published Dc Modeling for Zend Framework. It is a modeling library (just few files) that allows easy interaction with data, validations, filters and views. It is based on Kohana’s … Continue reading

Posted in Github, Zend Framework | Tagged , , , , | Leave a comment

Using Callback Validator – Zend Framework

With Kohana v3, callback validators pretty standard. However, today is my first time to implement Callback validator in Zend Framework for my current project. Implementation is a bit different but my experience with Kohana’s callback validators give me a good … Continue reading

Posted in Zend Framework | Tagged , , , , | 1 Comment

PHP Quick Tips – Fruit of Framework Hopping

Zend Framework and Kohana v3 – they were my favorite PHP frameworks and I’ve learn a lot from them, especially from Kohana v3. I have gathered some nice tricks that I never knew until I discovered them on these frameworks. … Continue reading

Posted in Kohana v3, php, Zend Framework | Tagged , | 1 Comment

Creating View Helpers – Zend Framework

Before, I have posted about creating a custom action helper. Now since I’m back for a ZF project, I’m posting how to create a view helper. My examples will be about rendering SELECT (dropdown menu) elements (without using Zend Form). … Continue reading

Posted in Zend Framework | Tagged , , , , | 4 Comments

Autoloading Zend Framework Like Classes In Kohana v3 – Enhanced

I have posted few days ago about Autoloading Zend Framework-like classes in Kohana v3 and think it was good. But after several iterations, I found out that it can be improved further. Now, it is fully infected with Zend Framework … Continue reading

Posted in Kohana v3, Zend Framework | Tagged , , , , , , , | Leave a comment

Autoloading Zend Framework Like Classes In Kohana v3

I admit, I’m a Zend Framework addict! So, I want to code using Zend Framework coding/naming conventions even in Kohana v3. However, I recently found out that it is too easy to autoload your ZF like classes in Kohana v3 … Continue reading

Posted in Kohana v3, Zend Framework | Tagged , , , , , , | 2 Comments

Custom Validator Suite – Zend Framework

In Zend Framework, there are already tons of validators under Zend_Validate. In Zend_Form, you can attach validators, as a result, you can have a validator suite ready. However, I don’t use Zend_Form and I just don’t like how validations are … Continue reading

Posted in Programming, Zend Framework | Tagged , , , , | 2 Comments

PHPUnit with Zend Framework – Unit Testing

Before, I used SimpleTest for unit testing. However, given the more advanced PHP 5.xx features and coding standards, I completely switch to PHPUnit. Moreover, PHPUnit’s coding convention is similar to Zend Framework and PEAR. Directory Structure Since PHPUnit is already … Continue reading

Posted in PHPUnit, Zend Framework | Tagged , , , , | 1 Comment

Using Array in Zend Config Ini

All of my projects in Zend Framework uses INI files as configuration files. They were just simple key=value pair. What if we want an array as value? Here, I am going to show how to implement an array in Zend_Config_Ini. … Continue reading

Posted in Zend Framework | Tagged , , , , , , , | 7 Comments