I want to share new built-in feature from yf framework:
It allows to easily display placeholder image with desired dimensions.

There are several methods to do this:
1. Calling url from any place will display image with width 200px and height 50px:http://project.dev/dynamic/placeholder/200×50
2. From withing project php code calling helper method will return html “img” tag with data/image with width 200px and height 50px:
module(‘dynamic’)->placeholder_img(array(‘width’ => 200, ‘height’ => 50));

I’ve added function wildcard_compare($wildcard, $string) into YF framework, which uses php built-in fnmatch() function, which is fast and not using regexps.
There is support for these patterns:
“*” – no or any number of symbols
“?” – exactly one symbol
“[abc]” – one of symbols passed inside square brackets

YF function wildcard_compare() differs from native fnmatch(): it can accept array of wildcards and if any of them matched – then overall return true.