View Single Post
  #1  
Old 03-11-2006, 09:32 AM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default adding my page in Admin

I tried to add a webpage in Admin to update some customized features in my cart. I had a mypage.php in cart\admin directory, and put mypage.tpl in cart\skin1\admin\main directory. The mypage.php looks like:

Code:
require "./auth.php"; require $xcart_dir."/include/security.php"; ... php codes related to database actions ... $smarty->assign("main","mypage"); $smarty->assign("location", $location); # Assign the section navigation data $smarty->assign("dialog_tools_data", $dialog_tools_data); @include $xcart_dir."/modules/gold_display.php"; func_display("admin/home.tpl",$smarty);

But, When I run www.mydomain/cart/admin/mypage.php after logged in as master, I get error saying

Page not found!
The requested page does not exist or you are not allowed to access it!

Did I miss something? Do I need to register mypage.tpl in somewhere?

Thanks a lot for your help.

Jeff

~~~~~
Version 4.0.14
__________________
version 4.1.1
Reply With Quote