],
'content_type' => Page::content_type_and_set_format(),
'nav' => [
- [ 'Home', '/' ]
+ [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'],
+ ( (!empty($Table) and !empty($Table->name)) ? [Page::prettyText($Table->name),Page::path().'?table='.urlencode($Table->name)] : '' ),
+ ( Page::p('action') ? Page::prettyText(Page::p('action')) : '' ),
],
-# NB 21.10.17 '_nav' => [
-# NB 21.10.17 [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'],
-# NB 21.10.17 ( (!empty($Table) and !empty($Table->name)) ? [Page::prettyText($Table->name),Page::path().'?table='.urlencode($Table->name)] : '' ),
-# NB 21.10.17 ( Page::p('action') ? Page::prettyText(Page::p('action')) : '' ),
-# NB 21.10.17 ],
'call' => array(
'begin',
#['out', "Hello World !!!\n"],
public $show_buttons = true;
public $show_url_sort = true;
public $show_header = true;
- public static $params = [ 'db', 'table', 'limit', 'debug', 'action'
- , 'page', 'paged' # wordpress
+ public static $params = [
+ 'db', 'table', 'limit', 'debug', 'action',
+ 'page', 'paged', # wordpress
];
function __construct($name,$opt=[]) {
}
}
- # NB 22.12.16: TODEL
- #$this->show_header = (bool)$this->p('header',$this->show_header);
- #$this->pdef('header',$this->show_header);
-
if (isset($_GET['rows.header'])) $this->show_header = $_GET['rows.header'];
- #$this->pdef('header',$this->show_header);
- #$this->show_header = (bool)$this->p('header',$this->show_header);
- #bye($this->show_header);
- #$this->show_header = (bool)$this->show_header;
- #$this->db()->out->header($this->show_header);
}