public function setLayout($layout)
	{
		if (strpos($layout, ':') === false)
		{
			$this->_layout = $layout;
		}
		else
		{
			// Convert parameter to array based on :
			$temp = explode(':', $layout);
			$this->_layout = $temp[1];

			// Set layout template
			$this->_layoutTemplate = $temp[0];
		}

		return $this;
	}
public function setLayout($layout)
	{
		if (strpos($layout, ':') === false)
		{
			$this->_layout = $layout;
		}
		else
		{
			// Convert parameter to array based on :
			$temp = explode(':', $layout);
			$this->_layout = $temp[1];

			// Set layout template
			$this->_layoutTemplate = $temp[0];
		}

		return $this;
	}
public function setLayout ( $ layout ) { if ( strpos ( $ layout , ':' ) === false ) { $ this -> _layout = $ layout ; } else { // Convert parameter to array based on : $ temp = explode ( ':' , $ layout ) ; $ this -> _layout = $ temp [ 1 ] ; // Set layout template $ this -> _layoutTemplate = $ temp [ 0 ] ; } return $ this ; }
Sets the layout name to use

@param   string  $layout  The layout name or a string in format <template>:<layout file>
@return  object
Sets the layout name to use