Created
July 14, 2012 18:10
-
-
Save biswarupadhikari/3112419 to your computer and use it in GitHub Desktop.
How to load multiple tmpl file into default.php file in Joomla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create multiple file inside view | |
admin/views/helloworlds/index.html | |
admin/views/helloworlds/view.html.php | |
admin/views/helloworlds/tmpl/index.html | |
admin/views/helloworlds/tmpl/default.php | |
admin/views/helloworlds/tmpl/default_head.php | |
admin/views/helloworlds/tmpl/default_body.php | |
admin/views/helloworlds/tmpl/default_foot.php | |
sourse code of defaut.php looks like | |
<?php | |
// No direct access to this file | |
defined('_JEXEC') or die('Restricted Access'); | |
// load tooltip behavior | |
JHtml::_('behavior.tooltip'); | |
?> | |
<form action="<?php echo JRoute::_('index.php?option=com_helloworld'); ?>" method="post" name="adminForm" id="adminForm"> | |
<table class="adminlist"> | |
<thead><?php echo $this->loadTemplate('head');?></thead> | |
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot> | |
<tbody><?php echo $this->loadTemplate('body');?></tbody> | |
</table> | |
<div> | |
<input type="hidden" name="task" value="" /> | |
<input type="hidden" name="boxchecked" value="0" /> | |
<?php echo JHtml::_('form.token'); ?> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment