Пример #1
0
 function prepareEmpty()
 {
     $view = $this->tpl();
     $nd = new \modl\PostnDAO();
     $view = $this->tpl();
     $view->assign('posts', $nd->getLastPublished(0, 10));
     return $view->draw('_post_empty', true);
 }
Пример #2
0
 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);
 }