public function setView($name, $layout=null)
	{
		$config = array(
			'name' => $name
		);
		if ($layout)
		{
			$config['layout'] = $layout;
		}
		$this->view = new View($config);

		// Set some commonly used vars
		$this->view->option     = $this->_option;
		$this->view->task       = $name;
		$this->view->controller = $this->_controller;
	}
public function setView($name, $layout=null)
	{
		$config = array(
			'name' => $name
		);
		if ($layout)
		{
			$config['layout'] = $layout;
		}
		$this->view = new View($config);

		// Set some commonly used vars
		$this->view->option     = $this->_option;
		$this->view->task       = $name;
		$this->view->controller = $this->_controller;
	}
public function setView ( $ name , $ layout = null ) { $ config = array ( 'name' => $ name ) ; if ( $ layout ) { $ config [ 'layout' ] = $ layout ; } $ this -> view = new View ( $ config ) ; // Set some commonly used vars $ this -> view -> option = $ this -> _option ; $ this -> view -> task = $ name ; $ this -> view -> controller = $ this -> _controller ; }
Reset the view object

@param   string  $name    The name of the view
@param   string  $layout  The name of the layout (optional)
@return  void
Reset the view object