I wanted to add a style to a div, but I was sure that our extensive CSS would have a class I could use, thus saving myself from increasing the size of the CSS file. However, how would I be able to view all the different styles and classes in the style they were assigned to? This would enable me to be able to quickly find the style I wanted and apply the class.
Couldn’t really find anything, so I quickly knocked one up.
Say you want to use a selector to select all controls with a certain class, apart from a particular one. Use the not selector:
When creating PHP classes, particulary when utilising Unit tests, its a good idea to use dependancy injections. This enables us to use a robust reliable class which is not hard coded to rely (depend) on certain factors.
If you were to use the Zend_Mail_Service in your class, it would work fine, but we would come across a couple of drawbacks.