ZF-11512: Zend_Tool_Project_Provider_Layout not properly detecting existing layout configuration
Description
When enabling layout using "zf enable layout" on a project that has already has been enabled doesn't get picked up. This is due to a typo in the if-statement. Nothing drastic happens except another " resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/" " is added to the application.ini file Also, the .zfproject.xml file isn't updated correctly
Comments
Posted by Rod Pattison (rodp82) on 2011-06-29T05:30:39.000+0000
Apologies for pasting in the patch here, not sure how to attach it
Index: Layout.php
--- Layout.php (revision 24161) +++ Layout.php (working copy) @@ -70,7 +70,7 @@
@@ -93,6 +93,8 @@ );
Posted by Kim Blomqvist (kblomqvist) on 2011-06-29T11:30:38.000+0000
Hi Rob,
Thanks for the patch to contribute to ZF. However, before contributing code you should sign the cla (http://framework.zend.com/wiki/display/…). After then you can attach files.
Posted by Kim Blomqvist (kblomqvist) on 2011-06-29T17:33:12.000+0000
Patch attached. Also implements {{zf disable layout}}.
Posted by Kim Blomqvist (kblomqvist) on 2011-06-29T20:12:36.000+0000
Disable layout feature removed from the patch.
Posted by Adam Lundrigan (adamlundrigan) on 2011-06-29T20:17:01.000+0000
Reproduce (stdout trimmed for brevity):
Result: {{application/configs/application.ini}} now contains two {{resources.layout.layoutPath}} lines under the {{production}} group:
Rob's suggested fix:
After applying patch, running reproduce sequence from above now shows desired result: (most stdout trimmed for brevity):
Posted by Adam Lundrigan (adamlundrigan) on 2011-06-29T20:21:38.000+0000
Fixed in trunk r24164 Merged to release-1.11 in r24165