Monthly Archives: July 2010

Which Model Should Contain That Method?

Let’s say you have two models – each one modeling a database table – Users & Article. Here there’s nothing to deal with Zend Framwork, but you can think of them as typical models in a ZF application. What happens … Continue reading

Posted in micro tutorial, web development | Tagged , , , , , , , , , , , , , | 1 Comment

Are You Agile?

Agile you are? Perhaps Master Yoda would say that, but it’s interesting to know what methodology do you use in your work. Any answers will be highly appreciated, so here are some basic questions: Do you follow any software development … Continue reading

Posted in web development | Tagged , , , | 1 Comment

Zend_Validate_Db_RecordExists in Zend Framework 1.10+

Zend_Validate_Db_RecodExists is an extremely useful validator in Zend Framework when you’d like to be sure that a give row exists. Now it seems to be even better. Before you could check for a specific row by only comparing a value … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , | Leave a comment

Setting Up Global Cache in Zend Framework

In a large scale web application, especially based on Zend Framework, there are lot’s of components that support built in cache support. Such are Zend_Db, Zend_Translate, Zend_Date, etc. Also you may need cache support wherever in the app, so my … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , , , , | 2 Comments

Zend Framework: Connect MySQL

There are so many tutorials about that, but let me add it one more time. You’ve to use the PDO_MYSQL adapter: // where params include adapter, host // username, password and dbname $db = new Zend_Db_Adapter_Pdo_Mysql($params); and set the default … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , , , | Leave a comment