This article describes the method by which Joomla implements the component to eject a modal (modal) window. Share to everyone for your reference, as follows:
The most critical JS in/media/system/js/modal.js. There are two ways to do this, all of which are modified by the template file default.php of the extension component.
Way One:
<?php jhtml::_ (' Behavior.modal ', ' a.modal ');? >view
As simple as this can be achieved, the rest of the things joomla! all to help you deal with. Be happy!
Way two:
View
Generally still use the first kind of good, if you want to study modal.js exactly how to achieve, the second way to make an introductory example.
More about Joomla related content readers can view this site topic: "YII framework Introduction and common skills Summary", "PHP Excellent Development Framework Summary", "Smarty Template Primer Basic Tutorial", "thinkphp Common Methods Summary", "PHP object-oriented Programming introduction Tutorial" , "PHP String Usage Summary", "Getting Started with Php+mysql database operation" and "PHP common database Operation Skills Summary"
It is hoped that this article is helpful to everyone based on Joomla program design.