0
3.7으로 업그레이드하기 전에 다음 코드를 사용했지만 "JHtml :: script ('com_members/site.js', array(), true);" 더 이상 site.jsjoomla에서 jhtml :: script가 더 이상 작동하지 않습니다. 3.7
class MembersViewMembersELso extends JViewLegacy
{
// Overwriting JView display method
function display($tpl = null)
{
// Get data from the model
$state = $this->get('State');
$items = $this->get('Items');
$pagination = $this->get('Pagination');
// Check for errors.
if (count($errors = $this->get('Errors')))
{
JError::raiseError(500, implode('<br />', $errors));
return false;
}
// Assign data to the view
$this->state = $state;
$this->items = $items;
$this->pagination = $pagination;
// get the stylesheet (with automatic lookup, possible template overrides, etc.)
JHtml::stylesheet('com_members/site.stylesheet.css', array(), true);
// insert js code for onsubmit
JHtml::script('com_members/site.js', array(), true);
// Display the view
parent::display($tpl);
}
}
감사합니다을. 나는 당신의 제안을 사용 하겠지만, 왜 JHtml :: Script 문이 갑자기 Joomla 3.7에서 실패하는지 알 수 있습니까? –