Tag Archives: model

(PHP) Magento Using Collections, Filters and Manipulation Methods

A collection is a Model type containing other Models, it is basically used in Magento to handle product lists (ie. from a category or a bundle option), but not only. This is a simple example of loading some product collection from a category and ordering them on their product name using Magento’s API.

Posted in PHP | Also tagged , , , , , , , | Leave a comment

(CSS) CSS Box Model Hack

classical box model hack, by Tantek Çelik http://www.tantek.com/CSS/Examples/boxmodelhack.html

Posted in Uncategorized | Also tagged , , , , | Leave a comment

Abstract database models with PDO MySQL (Zend Framework)

Zend Framework allows you to create models which extend Zend_Db_Table_Abstract. The snippets below demonstrate abstract database models.

Posted in PHP | Also tagged , , , , , , | 1 Comment