7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Application
17 * @subpackage Resource
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
24 * @see Zend_Application_Resource_ResourceAbstract
26 require_once 'Zend/Application/Resource/ResourceAbstract.php';
30 * Resource for settings layout options
32 * @uses Zend_Application_Resource_ResourceAbstract
34 * @package Zend_Application
35 * @subpackage Resource
36 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
37 * @license http://framework.zend.com/license/new-bsd New BSD License
39 class Zend_Application_Resource_Layout
40 extends Zend_Application_Resource_ResourceAbstract
48 * Defined by Zend_Application_Resource_Resource
52 public function init()
54 $this->getBootstrap()->bootstrap('FrontController');
55 return $this->getLayout();
59 * Retrieve layout object
63 public function getLayout()
65 if (null === $this->_layout
) {
66 $this->_layout
= Zend_Layout
::startMvc($this->getOptions());
68 return $this->_layout
;