Differences between the CSS properties: nth-child and nth-of-type

I will try to clarify the difference between the nth-child and nth-of-type. p:nth-child(1): Means that is the first child of any parent and is of type paragraph. p:nth-of-type (1): Means that is the first appearance of the type paragraph within any parent. This example will clarify the things a little bit: In this example the parent is the first <div>, …

Creating FOREIGN KEYS with MYSQL INNODB databases

The FOREIGN KEYS are very useful to keep the information integrity on databases. For intance if you have some tables related between them, you can use the FOREIGN KEY to automaticly update or remove data in the child tables whether the parent table has been modified. Note that the FOREIGN KEY is only available in MYSQL when using InnoDB engine, …

Creating ACL with database in Zend Framework v1.12

The creation of a secure and powerful ACL (Access control list) it’s one of the most delicate and important pieces for building a sturdy website.  I’ll try to make this task easier sharing the code I used in one of my latest projects. This ACL system works with a MySQL database which grant us total flexibility creating users and roles. Creating …

Installing Zend framework debug bar

Zend framework debug bar is a useful and lightweight plugin. It will make the debugging tasks easier and less painful showing us information like: Script running time Memory usage Variables ($_COOKIE, $_POST and $_SESSION) SQL querys Included files Cache Used databases Installation Download the ZFDebug plugin. place the folder ‘ZFDebug‘ in your library path, next to the ‘Zend‘ folder. And …

Embedding images on email (Zend Framework)

Most of the e-mail management tools (Gmail, Hotmail, Yahoo…) don’t show  images if they are coming from an external source,  like the following link: <img src=”http://www.example.com/politician.jpg“> The solution for this issue is to embed the images into the email. It’s  well  explained on php.net, but probably it’ll take a precious time. Fortunately for the Zend Framework developers there is a faster way. …