Answer the question
In order to leave comments, you need to log in
Livestreet CMS - How to get the ID of the topic in which you are currently in the block file?
class PluginNegative_BlockNegative extends Block
{
public function Exec() {
/**
* Получаем список юзеров
*/
$aResult = $this->Vote_GetUsersIdByTopicsVote(2, -1);
$aNegative = $this->User_GetUsersByArrayId($aResult);
/**
* Загружаем переменные в шаблон
*/
$this->Viewer_Assign('aNegative',$aNegative);
}
}
$this->getId();
$this->Topic_getId();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question