Author |
Message |
Topic: Variable in {section} |
christophkl
Replies: 0
Views: 5170
|
Forum: Smarty Development Posted: Sat Feb 19, 2005 12:27 am Subject: Variable in {section} |
I am not able to pull up the variable $product.reorder_time, it works out side of the section but not in it.?! Any Help appreciated
<select name="reorder_time">
{section name=reorder_ti ... |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 6:34 pm Subject: Is user accessing page via https or http |
WOW! You don't know how long I have spent on this problem! Next time I will mention X-Cart to start with.
Thanks to everyone! |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 6:22 pm Subject: Is user accessing page via https or http |
It only works in auth.php itself so I think I see what you mean, probably as it goes on the next page it unsets it. Do you know anyway to get around this? |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 6:04 pm Subject: Is user accessing page via https or http |
I do know that $_SERVER['HTTPS'] works because if I do an echo of $_SERVER['HTTPS'] it comes up ON etc. |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 4:30 pm Subject: Is user accessing page via https or http |
All I can see are items ending in .tpl would that mean that their are no assigned variables. when I try to go directly to auth.php with the debuger enabled there is no popup. |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 4:10 pm Subject: Is user accessing page via https or http |
When I enabled debugging I just got a popup with included template and config files. How do I get the assigned variables? |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 3:31 pm Subject: Is user accessing page via https or http |
Hi Thanks for the correction. I still am having problems pulling up the variable in the template here is what I have. The main page home.php then included is auth.php with
require "./auth.php";
... |
Topic: Is user accessing page via https or http |
christophkl
Replies: 26
Views: 91154
|
Forum: Smarty Development Posted: Thu Jan 20, 2005 2:36 am Subject: Is user accessing page via https or http |
I have spent the past day trying to figure out how to include one chunk of JavaScript if the user is accessing the page via https and another if it is http. I can get it to work on a regular PHP page ... |
|