X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   adding my page in Admin (https://forum.x-cart.com/showthread.php?t=20449)

jdedba 03-11-2006 09:32 AM

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

Light Speed 03-13-2006 10:03 PM

What permissions do you have set on that file?


All times are GMT -8. The time now is 11:18 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.