When dealing with Magento, the common knowledge to bulk update products is to pull in a collection and, in a loop, load the product, change the attribute and save. A client is syncing their product database from their system to Magento, but their system only allows a product to be in one category. I was […]
Ah the strength and failings of Magento. Of all its features, the ability to control nearly all of the layout from a single local.xml file is my favourite. One of the main features of this approach is that you can call functions (called actions) to add, remove or override values for the block you are […]
Routing is the action of taking the requested url and pointing the application to the correct module, controller, and action so that the request can be correctly processed. There are a number of ways to implement this using the Zend Framework, the most common of which is to create a routing object in the application […]
Meta keywords and description used to be used by search engines to help work out what your website is about. Nowadays they are used to web applications to work out how to describe a specific page (for example, paste a link into Google+ and the meta description of the page will be fetched and shown). […]
It is fairly common for me to read or hear of developers referring to the Zend Framework as ‘Zend’. Such as ‘what is zend?’, ‘why is zend doing x?’ and ‘how do I make zend do y?’. This post will hopefully explain the difference between Zend and the Zend Framework.
Anyone who has tried to validate a user input using Zend_Validate_EmailAddress will find that there are a LOT of error messages returned – one for each problem with the email address: Invalid format Invalid hostname Invalid mx record and 5 more This class will replaces all the error messages with one message.
You’re developing a huge application, but want your code to be modular so that you can use it again else where. But what happens if one module is dependent on another, and you have forgotten to include it? For example, you may have a ‘products’ module that allows you to add, edit, and view products. […]
It may be that your server does not allow you to send emails, for example a shared server or localhost that you cannot configure. In either case, if you are using the Zend Framework’s Zend_Mail component, you can have your application send the emails through GMail.
In the world of web development, forms are basis of most of your application. Everything that is displayed comes first from a form. The Zend Framework includes a wonderful form class, Zend_Form, that makes it easy to create elements, and when the form is submitted, to filter and validate the user input. What is not […]keep looking »