I am currently working on a huge back-end application in the Zend Framework. Many times I get the wrong icon for an object or action.
My question
is, is there any php code for automatically creating icons?
Of course, these icons will not be generated magically, the best scenario is that we have a collection of icons that have a type.
- Object (user, category, product, rss, etc.)
- Action (add, change, delete, update, etc.)
This way we can create badges by mixing different types of badges on the fly.
Code to create an icon to remove a user from 32x32 and delete an icon in the lower right corner of the icon.
$ icon = new Icon ();
$ icon-> object ('user') -> action ('delete');
$ icon-> action_align ('right') -> action_valign ('bottom');
$ icon-> action_height (10) -> action_width (10);
$ icon-> height (32) -> width (32);
$ icon-> create ();
This is just an example of how we can create an icon that has never been before.
source
share