public function page($obj,$meth=null,$head=[],$fct=null) {
- // Write output
-
+ // Defaults
if (empty($this->default_limit)) $this->default_limit = $this->db->limits[0];
+ $this->db->limit = $this->limit();
+ // Write output
if (empty($this->_nopage)) {
$this->page->headers_no_cache();
} elseif(is_array($meth)) {
$this->db->out($meth,$head,$conf);
- } else {
- # Objects Method
+ } else { # Objects Method
$out = $obj->$meth();
- if (!empty($out)) {
- # bye([$this->params['format'],$this->page->content_type()]);
- #bye($out); array_shift($out);
-
- $this->db->out($out,$head,$conf);
- }
+ if (!empty($out)) $this->db->out($out,$head,$conf);
}
}
public function table_rows($fct=null) {
- $this->db->limit = $this->limit();
$opt = ($this->page->is('html')
and ($this->perm >= self::VIEW)
}
- return $this->page($rows);
return $rows;
- exit;
+ #return $this->page($rows);
}
- #return $this->page->phpinfo();
- return $this->page($this->page->phpinfo($txt));
+ return $this->page->phpinfo();
+ #return $this->page($this->page->phpinfo($txt));
}
public function run_root() {
} elseif ($action == 'phpinfo') {
#$this->page(['phpinfo'=>$this->page->phpinfo(true)]);
#$this->page($this->page->phpinfo());
- #$this->page($this,'phpinfo');
- $this->page_phpinfo();
+ $this->page($this,'page_phpinfo');
+ #$this->page_phpinfo();
} elseif (0
or $action == '_SERVER'