function _showOutput($mymode = "usual") { $time_start = microtime(true); $this->_tree['auth'] = $this->User->isLogged(); $this->_tree['info'] = 'ok'; header("Content-type: application/json"); echo json_encode($this->_tree); }