function display() { $cd = new modl\ContactDAO(); $this->view->assign('top', $cd->getTop(6)); $pd = new \Modl\PostnDAO(); $this->view->assign('news', $pd->getAllPosts(false, 0, 4)); $this->view->assign('jid', $this->user->getLogin()); $this->view->assign('presencestxt', getPresencesTxt()); }
function prepareEmpty() { $view = $this->tpl(); $nd = new \modl\PostnDAO(); $cd = new modl\ContactDAO(); $view = $this->tpl(); $view->assign('presencestxt', getPresencesTxt()); $view->assign('top', $cd->getTop(6)); $view->assign('blogs', $nd->getLastBlogPublic(0, 6)); $view->assign('posts', $nd->getLastPublished(0, 4)); $view->assign('me', $cd->get($this->user->getLogin()), true); $view->assign('jid', $this->user->getLogin()); return $view->draw('_post_empty', true); }