Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

adding my page in Admin

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 03-13-2006, 10:03 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

What permissions do you have set on that file?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:43 AM.

   

 
X-Cart forums © 2001-2020