ZF-11578: Undefined function dir_exists in code example(Zend_Dojo_BuildLayer)

Issue Type: Docs: Improvement Created: 2011-07-19T11:01:10.000+0000 Last Updated: 2011-07-28T20:40:27.000+0000 Status: Resolved Fix version(s): - 1.11.10 (04/Aug/11)

Reporter: Pawel Chyl (chyl) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: Attachments:


There is undefined function in docs. In… in section Generating Custom Module Layers with Zend_Dojo_BuildLayer checking for folder existence should be done like this:

<pre class="highlight">
if (!file_exists(dirname($filename))) {
file_put_contents($filename, $layerContents);

The undefined function is dir_exists.


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!

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.