Issues

ZF-5891: Allow setting layout without enabling it

Issue Type: Patch Created: 2009-02-26T05:16:38.000+0000 Last Updated: 2009-11-25T00:28:54.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Mikko Koppanen (mkoppanen) Assignee: Marco Kaiser (bate) Tags: - Zend_Layout

Related issues: Attachments:

Description

Index: Layout.php

--- Layout.php (revision 14171) +++ Layout.php (working copy) @@ -320,15 +320,18 @@ /** * Set layout script to use * - * Note: enables layout. + * Note: by default enables layout. * - * @param string $name + * @param string $name + * @param string $enable
* @return Zend_Layout */ - public function setLayout($name) + public function setLayout($name, $enable = true) { $this->_layout = (string) $name; - $this->enableLayout(); + if ($enable) { + $this->enableLayout(); + } return $this; }

Comments

Posted by Marco Kaiser (bate) on 2009-11-20T06:17:22.000+0000

fixed in r19088

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts