I
I
Inteli Sense2014-07-11 16:35:23
PHP
Inteli Sense, 2014-07-11 16:35:23

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);
  }
}

As in the Exec function - Get the id of the current topic. Where the user is right now.
Tried like this
$this->getId();
$this->Topic_getId();

Api does not give solutions - but I can’t think of it myself. Thank you in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question