Hi Swaiba, first, i am not using Mappable.
Lets go thru this step by step.
==> into PageMap3.ss
$Locator
==> into PageMap3.php
function Locator() {
include 'locator/index.php';
return $output;
}
==> into locator/index.php
<?php
include "locator.php"
print $output;
?>
==> into locator.php
<?php
error_reporting('E_ALL');
session_name('USESSID');
session_start();
include('config.php');
include(DIR_FS_ROOT . 'func.php');
include(DIR_FS_ROOT . 'init.php');
include(DIR_FS_ROOT . 'class.template.php');
include(DIR_FS_ROOT . 'class.paging.php');
include(DIR_FS_ROOT . 'GoogleMap.php');
$tpl = new FastTemplate(DIR_FS_ROOT . 'skins/' . SKIN_NAME);
$tpl->no_strict();
$tpl->define(array('main' => 'main.htm',
'results' => 'results.htm',
'results_no' => 'results_no.htm',
'results_error' => 'results_error.htm',
'form' => 'form.htm',
'info' => 'info.htm',
'info_phone' => 'info_phone.htm',
'info_fax' => 'info_fax.htm',
'info_email' => 'info_email.htm',
'info_website' => 'info_website.htm',
'info_number' => 'info_number.htm',
'info_field1' => 'info_field1.htm',
'info_field2' => 'info_field2.htm',
'info_field3' => 'info_field3.htm',
'nav' => 'nav.htm',
'head' => 'head.htm'
));
$tpl->define_dynamic('row', 'results');
$tpl->define_dynamic('cell', 'results');
$tpl->assign(array(
'WWW_ROOT' => HTTP_SERVER . DIR_WS_ROOT,
'SITE_TITLE' => 'Store Locator'
));
if(!empty($_GET['cp'])) $cp = preg_replace('%[^a-z]%msi', '', $_GET['cp']);
if(!empty($cp)) {
if(file_exists($cp . '.php')) {
include(DIR_FS_ROOT . $cp . '.php');
} else {
$output = 'Module not found';
}
} else {
$tpl->assign('SITE_TITLE', '');
include(DIR_FS_ROOT . 'def.php');
}
$tpl->assign(array('CONTENT_TEXT' => @$output));
$tpl->parse('FORM', 'form');
$az_locator_form = $tpl->fetch('FORM');
$tpl->parse('PAGE', 'main');
$output = $tpl->fetch('PAGE');
?>
Look at last line, here is where retourn $output comes from.
- - -
Ive tried bypassing locator/index.php by including directly locator/locator.php
==> into PageMap3.php
function Locator() {
include 'locator/locator.php';
return $output;
}
None of those works.....
Thanks!