public function CreatePage() 
	{		
		$myWords = $this->WordCollection();		

		$this->_titlePage = $myWords->Value("TITLE", $this->_context->get("SERVER_NAME") );
		$this->_abstractPage = $myWords->Value("ABSTRACT", $this->_context->get("SERVER_NAME") );
		
		$this->_document = new XmlnukeDocument($this->_titlePage, $this->_abstractPage);
		
		$this->txtSearch = $this->_context->get("txtSearch");

		if ($this->txtSearch != "")
		{
			$this->Form();
			$doc = $this->Find();
		}
		else
		{
			$this->Form();
		}
		return $this->_document->generatePage();
	}
public function CreatePage() 
	{		
		$myWords = $this->WordCollection();		

		$this->_titlePage = $myWords->Value("TITLE", $this->_context->get("SERVER_NAME") );
		$this->_abstractPage = $myWords->Value("ABSTRACT", $this->_context->get("SERVER_NAME") );
		
		$this->_document = new XmlnukeDocument($this->_titlePage, $this->_abstractPage);
		
		$this->txtSearch = $this->_context->get("txtSearch");

		if ($this->txtSearch != "")
		{
			$this->Form();
			$doc = $this->Find();
		}
		else
		{
			$this->Form();
		}
		return $this->_document->generatePage();
	}
public function CreatePage ( ) { $ myWords = $ this -> WordCollection ( ) ; $ this -> _titlePage = $ myWords -> Value ( "TITLE" , $ this -> _context -> get ( "SERVER_NAME" ) ) ; $ this -> _abstractPage = $ myWords -> Value ( "ABSTRACT" , $ this -> _context -> get ( "SERVER_NAME" ) ) ; $ this -> _document = new XmlnukeDocument ( $ this -> _titlePage , $ this -> _abstractPage ) ; $ this -> txtSearch = $ this -> _context -> get ( "txtSearch" ) ; if ( $ this -> txtSearch != "" ) { $ this -> Form ( ) ; $ doc = $ this -> Find ( ) ; } else { $ this -> Form ( ) ; } return $ this -> _document -> generatePage ( ) ; }
Logic of your module

@return PageXml
Logic of your module