title: how to use JHTML::_('behavior.modal') in Joomla?
body: <p>I am creating a component,</p>
  
  <pre><code>controllers
      theatercontroller
      facilitycontroller
  Models
      theater
      facility
  view
      theater
      facility
  </code></pre>
  
  <p>What I want is I want to add a new facility from the theater view by clicking a button and opening a modal window. I have tried but didn't work. I studied some components but it is difficult for someone like me to understand it. Please I need a simple example and a explanation to understand it.   </p>