how to use JHTML::_('behavior.modal') in Joomla?

前端 未结 2 923
醉酒成梦
醉酒成梦 2021-02-11 08:23

I am creating a component,

controllers
    theatercontroller
    facilitycontroller
Models
    theater
    facility
view
    theater
    facility
2条回答
  •  有刺的猬
    2021-02-11 09:22

    It doesn't have to be anywhere near that complicated. Many templates turn the modal behavior on already, but if they don't all you need to do is add this to the head -

    
    

    Then add this to any links you want to open in a modal window -

    class="modal"
    

    Everything else is optional.

提交回复
热议问题