src/classes/CCViewController.php
protected function _respond( $string )
	{
		// if no view isset create one with the output buffer
		if ( is_null( $this->view ) ) 
		{
			$this->theme->content = $string;
		} else {
			$this->theme->content = $this->view->render();
		}
		
		// dont render the theme? Or does the request force render in modal?
		if ( CCRequest::current()->args->force_modal || $this->modal ) 
		{
			return CCResponse::create( $this->theme->content, $this->status );
		}
		
		// render theme and return response
		return CCResponse::create( $this->theme->render(), $this->status );
	}
protected function _respond( $string )
	{
		// if no view isset create one with the output buffer
		if ( is_null( $this->view ) ) 
		{
			$this->theme->content = $string;
		} else {
			$this->theme->content = $this->view->render();
		}
		
		// dont render the theme? Or does the request force render in modal?
		if ( CCRequest::current()->args->force_modal || $this->modal ) 
		{
			return CCResponse::create( $this->theme->content, $this->status );
		}
		
		// render theme and return response
		return CCResponse::create( $this->theme->render(), $this->status );
	}
protected function _respond ( $ string ) { // if no view isset create one with the output buffer if ( is_null ( $ this -> view ) ) { $ this -> theme -> content = $ string ; } else { $ this -> theme -> content = $ this -> view -> render ( ) ; } // dont render the theme? Or does the request force render in modal? if ( CCRequest :: current ( ) -> args -> force_modal || $ this -> modal ) { return CCResponse :: create ( $ this -> theme -> content , $ this -> status ) ; } // render theme and return response return CCResponse :: create ( $ this -> theme -> render ( ) , $ this -> status ) ; }
When a controller gives us a string make a response out of it

@param string
@return CCResponse
When a controller gives us a string make a response out of it