Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Вывод данных выше по коду (данные устанавливаются в шаблоне компонента)

John edited this page Feb 20, 2017 · 1 revision

Вывод переменной в шаблоне сайта

<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div id="content">
  <?php $APPLICATION->ShowViewContent('content'); ?>
</div> 

Установка переменной в шаблоне компонента template.php

<?php $this->SetViewTarget('content');?>
   <p><?php echo $arResult["DESCRIPTION"]?></p>
<?$this->EndViewTarget();?>
Clone this wiki locally