ZF-11578: Undefined function dir_exists in code example(Zend_Dojo_BuildLayer)
Description
There is undefined function in docs. In http://framework.zend.com/manual/en/… in section Generating Custom Module Layers with Zend_Dojo_BuildLayer checking for folder existence should be done like this:
if (!file_exists(dirname($filename))) {
mkdir(dirname($filename));
}
file_put_contents($filename, $layerContents);
The undefined function is {{dir_exists}}.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2011-07-28T20:40:27.000+0000
Fixed in trunk and the 1.11 release branch -- thanks!