I did the following; I created a .php file and a .tpl file as follows:
Php file (called new_page.php situated in shop directory):
Code:
<?php
require "./auth.php";
require $xcart_dir."/include/categories.php";
if($active_modules["Manufacturers"])
include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php";
if(!defined('XCART_SESSION_START')){ header("Location: ../"); die("Access denied");}
$location[] = array(func_get_langvar_by_name("lbl_new_page"), "new_page.php");
$smarty->assign("_new_page_",$_new_page_);
$smarty->assign("main","_new_page_");
$smarty->assign("location", $location);
$smarty->assign("products",$products);
func_display("customer/home.tpl",$smarty);
?>
Tpl file (called new_page.tpl situated in skin1/customer/):
Code:
{$lng.lbl_new_page}
In the language section of the database I've created 'lbl_new_page'
Opening new_page.php results in:
'Page not found! The requested page does not exist or you are not allowed to access it! '