El siguiente es un ejemplo que encontré en el foro de Xajax que sirve para cargar una página en una capa:
  Código PHP:
    function startCapture() { // start a new blank filter... used as startpoint of catching of the output
   ob_start(); 
}
      
 
function clearCapture() { // clean and kill the current filter (and cancel the capture)
   ob_clean(); 
}
      
 
function endCapture() { // get contents of the current filter, kill the filter and return the content as a simple variable
   $txt=ob_get_contents();
   ob_end_clean();
   return $txt;
}
 
function loadmodule($divname,$module) {
        global $ajaxresponse;
        killfilters();
        startcapture();
        //incluyo el contenido
        include "modulos/$module.php";
        //se termina la ejecucion del modulo
        $text=endcapture();
 
        //se le aplica un utf8_encode
        $text=utf8_encode($text);
        $ajaxresponse->addAssign($divname,"innerHTML", $text);//actualiza el contenido
        return $ajaxresponse->getXML();
} 
    
  Solo tienes que llamar a loadmodule(nombre_capa_a_cargar, modulo_a_cargar); 
Saludos,