Skip to content

Instantly share code, notes, and snippets.

<?php
// No direct access.
defined('_JEXEC') or die;
// Include dependancy of the main controllerform class
jimport('joomla.application.component.controllerform');
class MyResourceListControllerJoinWithUs extends JControllerForm
{
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.tooltip');
// get the menu parameters for use
$menuparams = $this->state->get("menuparams");
<?xml version="1.0" encoding="UTF-8"?>
<form name="updjointcm">
<fieldset name="joinwithus">
<field name="fname" type="text" description="COM_MYRESOURCELIST_FORM_DESC_NAME"
label="COM_MYRESOURCELIST_FORM_LBL_NAME" required="true" size="50" />
<field name="lname" type="text" description="COM_MYRESOURCELIST_FORM_DESC_LNAME"
label="COM_MYRESOURCELIST_FORM_LBL_LNAME" size="50" />
<field name="age" type="text" description="COM_MYRESOURCELIST_FORM_DESC_AGE"
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
?>
<tr>
<td colspan="3"><?php echo $this->pagination->getListFooter(); ?></td>
</tr>
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
?>
<?php foreach($this->items as $i => $item): ?>
<tr class="row<?php echo $i % 2; ?>">
<td>
<?php echo $item->id; ?>
</td>
<td>
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
?>
<tr>
<th width="5">
<?php echo JText::_('Id'); ?>
</th>
<th width="20">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" />
<?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_myresourcelist'); ?>" method="post" name="adminForm">
<table class="adminlist">
<thead><?php echo $this->loadTemplate('head');?></thead>
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="Regions Table">
<message>This is menu item for Join with Us Table</message>
</layout>
</metadata>
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla view library
jimport('joomla.application.component.view');
/**
* JoinTCMs View
*/
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import the Joomla modellist library
jimport('joomla.application.component.modellist');
/**
* HelloWorldList Model
*/
class MyResourceListModelRegions extends JModelList
{