// get current template
$template = &JFactory::getApplication()->getTemplate();
// load and inititialize gantry class
$gantry_path = JPATH_SITE . '/libraries/gantry/gantry.php';
if (file_exists($gantry_path))
{
require_once($gantry_path);
}
else
{
echo "error " . JText::_('Unable to find Gantry library. Please make sure you have it installed.');
die;
}
$model = $gantry->getAjaxModel(JRequest::getString('model'),false);
if ($model === false) die();
include_once($model);
// get current template
$template = &JFactory::getApplication()->getTemplate();
JRequest::setVar("template", $template);
// load and inititialize gantry class
$gantry_path = JPATH_SITE . '/libraries/gantry/gantry.php';
if (file_exists($gantry_path))
{
require_once($gantry_path);
}
else
{
echo "error " . JText::_('Unable to find Gantry library. Please make sure you have it installed.');
die;
}
$model = $gantry->getAjaxModel(JRequest::getString('model'),false);
if ($model === false) die();
include_once($model);
Time to create page: 0.065 seconds