menyusul permasalahan lain
public function handleRequest() {
$this->loadErrorHandler();
/* save page to manager object. allow custom actionVar choice for extending classes. */
$this->action = isset($_REQUEST[$this->actionVar]) ? $_REQUEST[$this->actionVar] : $this->defaultAction;
$modx =& $this->modx;
$hosting =& $this->hosting;
$viewHeader = include $this->hosting->config['corePath'].'controllers/mgr/header.php';
$f = $this->hosting->config['corePath'].'controllers/mgr/'.$this->action.'.php';
if (file_exists($f)) {
$viewOutput = include $f;
} else {
$viewOutput = 'Controller not found: '.$f;
}
return $viewHeader.$viewOutput;
}
pada baris ini
if (file_exists($f)) {
$viewOutput = include $f;
} else {
$viewOutput = 'Controller not found: '.$f;
}
return $viewHeader.$viewOutput;
tak coba seperti ini juga belum mempan
if (file_exists($f)) {
ob_start();
include $f;
$viewOutput = ob_get_contents();
ob_end_clean();
} else {
$viewOutput = 'Controller not found: '.$f;
}
filenya ada tapi includenya ga kebaca hmmm ada ide?