我有一個Magento主題的網站,我發現這個代碼PHP。這是什麼意思PHP代碼? Magento
<div class="product-options sss" id="product-options-wrapper">
<?php echo $this->getChildHtml('', true, true);?>
<?php if ($this->hasRequiredOptions()):?>
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
<?php endif;?>
</div>
在這段代碼中誰是this
?我的div?
getChildHtml('', true, true);
從我,我意識到,''
在互聯網上找到意味着所有的孩子一個div(其格?)
我不明白是什麼參數用於布爾true true
...幫助他們?
我在網上找到它getChildHtml
方法從XML文件中取得東西。我可以在哪裏找到這個文件?
你能給我解釋一個簡單的示例代碼嗎?
提前致謝!