Шаблон Simple для LiveStreet 1.0
Мы адаптировали популярный шаблон Simple для LiveStreet 1.0
Демо доступно здесь — demo.livestreetcms.com/simple/
public function GetUserInvite($uId) {
return $this->oMapper->GetUserInvite($uId);
}
public function GetUserInvite($uid) {
$sql = "SELECT *
FROM ".Config::Get('db.table.blog_invite')."
WHERE `user_to`=?d AND `invite_status`=2
LIMIT 1";
if ($aRow = $this->oDb->selectRow($sql,$uid)) {
return Engine::GetEntity('Invite',$aRow);
}
return null;
}
public function getUserInvite($uId) {
return $this->Invite_GetUserInvite($uId);
}
{assign var="oInvite" value=$oUserCurrent->getUserInvite($oUserCurrent->getId())}
//чуть ниже в разметки шаблона
<li style="color:white">
Вы приглашены в проект #{$oInvite->getBlogId()}
</li>
<li style="color:white"> Вы приглашены в проект #<!--error--><br />
<b>Fatal error</b>: Call to a member function getBlogId() on a non-object in <b>Z:\home\localhost\www\templates\compiled\synio\19049a0d144341a2ec6ade7e3aa1719fe0a87ad1.file.header_top.tpl.php</b> on line <b>61</b><br />
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>